ping counter impl