added counter class