legacy counters code removed