Here are a few options you could use depending on the context:
* A bottle/box/jar of pills: This is the most straightforward and accurate way to describe a collection of pills.
* A course of pills: This refers to a set of pills taken over a specific period for a medical reason.
* A handful of pills: This is a more informal way to describe a small collection of pills.
You could also use a more creative and metaphorical term:
* A regiment of pills: This implies a disciplined and ordered group of pills.
* A swarm of pills: This emphasizes the large number of pills.
Ultimately, the best collective noun for pills will depend on the specific situation and what you want to emphasize.