As it was printed in an Oz magazine it is not something available in the wide world, so here it is:
Two ping pong balls split and connected together on horizontal cross.
Vertical shaft to have model car bearing mounted on pill container, shaft also contains magnet for reed switch.
Reed switch stuck to pill box is wired to equals sign (=) on calculator.
Calculator to have connection to larger battery for constant use.
Calculator must be old type WITHOUT auto-power off option.
When you put one plus (1+) into a calc and then repeatedly press the equals sign you will notice the screen to start counting, i.e., 1,2,3,4,5,..... Just what you want.
Calibration via car tacho as with a wind mill.
The only problem I can see that even the cheapest calculators these days seem to have an auto-power off option.
Hope this is useful.
dominic