Made counters a separate class

Allows for different ways of counting the APM to be added.