set init to initialize the counter object