Max counters problem