BPM Counter Solution

This is a duplicate of another topic.