code: public long[] getBucketCounts() {
          long[] counts = new long[getNumBuckets()];
          for (int i = 0; i < counts.length; i++) {
              counts[i] = getBucketCount(i);
          }
          return counts;
      }
docs: {@inheritDoc}