How often surface diffeomorphisms have infinitely many sinks and hyperbolicity of periodic points near a homoclinic tangency