Added solution for "MaxCounters" problem