code: public static int[] bandwidth(int num, int[] ind) {
          int[] nz = new int[num];
  
          for (int i = 0; i < ind.length; ++i)
              nz[ind[i]]++;
  
          return nz;
      }
docs: Finds the number of repeated entries
  
  @param num
  Maximum index value
  @param ind
  Indices to check for repetitions
  @return Array of length <code>num</code> with the number of repeated
  indices of <code>ind</code>