This is the exact reason why they count pills. You have a prescription for X pills, you get X pills.
It's been a while since I've had a prescription filled, but I think that in New Zealand it's the same. Most prescription drugs like opiate painkillers or antibiotics are counted and bottled.