This constraint follows from the fact that the expansion of the early Universe is dominated by the relativistic particles, the photons electrons, neutrinos, and their anti-particles. Suppose the Universe is made up of
photons + electron neutrinos + muon neutrinos
In this case, the amount of energy contained in the Universe is smaller and the Universe will expand more slowly. If there is another type of neutrino in addition to the electron, muon, and tau neutrinos, say the x-neutrino, then the energy contained in the Universe would be greater and the Universe would expand more quickly.
What determines the n/p ratio at the time of nucleosynthesis?
Detailed calculations yield the following result on the number of neutrino families.
Big Bang nucleosynthesis, the helium abundance, and a reasonable range for the baryon density suggests that we have 3 types of neutrinos. Theory, in principle, does not predict this result. Work by experimental particle physicists using large accelerators have produced results consistent with this suggestion. In an odd sense, one could argue that the Terrestrial accelerator results confirm the existence of the Big Bang.