updated with Counter.h functions