step-by-step counter implementation (1)