We show that precision measurements of the oblique correction parameters S and T can be used to derive an upper bound on the number of extra generations of heavy fermions Neg. The bound depends on the type of heavy neutrino masses. We have obtained Neg≤2 in the case of Dirac neutrinos and Neg≤5 in the case of neutrinos with Majorana masses, under some assumptions on the flavor and color contents of extra generations.