Constraining neutrino physics with BBN and CMBR