Lepton Degeneracy and Cosmological Constraints on the Number of Neutrinos