First working version of Max-Counters problem (runs long for all max counters).