add counter class