1. At every count, you must start a counter
2. Flag whether first count received
4. If this is first count received, zero the strokes per minute and exit
3. If this is not the first count received, then read the counter and reset it.
4. Determine Strokes Per Minute by dividing 60000 by elapsed time in milliseconds.
5. Exit
6, Track the counter every second, if it reaches 8 seconds elapsed time, zero the strokes per minute, and flag the count as not being the first count. This means the stroke counter cannot read any lower than 8 strokes per minute, which is unreasonable for a pump anyway.