public void add(int value) {
        if (value < 0) {
            throw new RuntimeException("invalid negative value.");
        }
        if (value >= counts.length) {
            value = counts.length - 1;
        }
        synchronized (this) {
            int curCount = counts[value];
            if (curCount < Integer.MAX_VALUE) {
                counts[value] = counts[value] + 1;
            }
        }
    }
Add a new value to the histogram.

Note that the value will be clipped to the maximum value available in the Histogram instance.
So if the histogram has 100 buckets, inserting 101 will increment the last bucket.
trogdor/src/main/java/org/apache/kafka/trogdor/workload/Histogram.java