In "Charlie and the Chocolate Factory," what figurative language is used to describe the number of children in the tour of the factory shrinking?

The shrinking number of children in the tour of the factory is described as "dropping like flies." This is an example of a simile.