Refactored Counters into a separate class