counts/samples per minute

I will make a counter for a product conveyor how would I code my program so the readings wound be print as counts/samples per minute? I've used the code change of state or edge detection for counting printing it on per minute scheme is my problem and updating contentiously as it go faster or slower.

thank you for your help in advance

Post your current code!

Do you want the count to be printed every minute and then reset or do you want to print it more often for the most recent 1 minute period ?