code: private static void getCounts(BaseArray T, BaseArray C, int n, int k) {
          for (int i = 0; i < k; ++i) {
              C.set(i, 0);
          }
          for (int i = 0; i < n; ++i) {
              C.update(T.get(i), 1);
          }
      }
docs: /* find the start or end of each bucket