THE EVOLUTION OF THE NUMBER DENSITY OF COMPACT GALAXIES