add stat counter tracking