Groups of Galaxies.IV. The Multiplicity Function