Neutrino properties from cosmology