Understanding the concept of counters