Added a simple Counter class