added counters to callabck for pingpong