A friend asked me for a design to make a counter using logic chips and digit displays. That could certainly be done ... but I had another idea that looked both cheaper and easier.
Pedometers are readily available for under $10. I had one from AxMan surplus for about 3 bux. It can count steps, has a 4-1/2 digit LCD display that can count up to 39999. What's inside is a little pendulum with a magnet that actuates a reed switch. If leads are stuck on the switch so it can be remotely located, then a magnet on a pump shaft, door, gate, etc could actuate it -- or, a TTL pulse from a sensor could actuate a jellybean transistor connected across the reed switch wires.
I tried it. Works fine at low rates. 5 or 6 counts per second (300 to
360 per minute) are about as fast as it wants to go -- but whaddya want for 3 bux?