code: private int[] getAxisCounts(int repeat) {
  		int[] counts = new int[getNumLevels()];
  
  		for(int i = counts.length-1; i >= 0; i--) {
  			int d = axes.get(i).getOrder();
  			counts[i] = repeat % d;
  			repeat /= d;
  		}
  		assert repeat == 0 : "Invalid repeat index";
  		return counts;
  	}
docs: Return a list giving the number of times each axis must be applied
  to generate the given repeat.
  <P>
  For instance, for a D3 case <tt>getAxisCounts(4)</tt> would return [2,0],
  indicating that repeat 4 is generated by two applications of the 3-fold
  axis followed by 0 applications of the two-fold axis.
  
  @param repeat Index of the desired repeat
  @return array of the same length as axes giving the number of times
  to apply each axis.