A Counter Machine to be used on the ModuleSim simulator