how about   
     
          private int cycleIndex(int count) {
                int i = index % count;
                index = i+1;
                return i;
          }