### Question:
DistributionBucket { public int getCount() { return buckets.length + 1; } DistributionBucket(final long[] buckets);  DistributionBucket(final long[] buckets, final NameSpec nameSpec); int getCount(); int getBucketIndex(long value); String[] getBucketNames();  }### Answer:
@Test void testBucketCount() { DistributionBucket bucket = new DistributionBucket(new long[]{0, 10, 50, 100, 1000}); assertEquals(6, bucket.getCount()); }