Use a Module for the Counting logic.