counter class for timer