Counters logic implemented