See: BY THE DOZEN.
{adv. phr.} Very many at one time; in great numbers. * /Tommy ate cookies by the down./ Often used in the plural, meaning even larger numbers. * /The ants arrived at the picnic by the hundreds./ * /The enemy attacked the fort by the thousands./