Well, in many countries, pharmacies just dispense prepackaged packs and bottles. No counting involved.
Who packages them?
Automated machines in pharma factories.