improved Counter class