Added counters for statistics