add Counter class