Jason,
1. Use a Timer to time up to 1 minute.
2. Use a Counter to count a part each time the Input goes on.
3. At the end of 1 minute, move the Counter value to a memory word called "Parts per Minute".
4. Now reset the counter and the timer to 0, then restart the timer.
If you want to get an average rate in less than 1 minute, then set the timer to some lower number (15 seconds maybe), then multiply your total accumulated count by 4 to convert it back to parts per minute.
If you want to get an average rate in 5 seconds, then set the timer to 5 seconds, then multiply your total total accumulated count by 12 to convert it back to parts per minute.