add stat counter