Made counters functional