Add initial version of counter base class