feat(counter): implementing count method