Solution for MaxCounters