Problem in using counters