code: public long getCountAtValue(final long value) throws ArrayIndexOutOfBoundsException {
          final int index = Math.min(Math.max(0, countsArrayIndex(value)), (countsArrayLength - 1));
          return getCountAtIndex(index);
      }
docs: Get the count of recorded values at a specific value (to within the histogram resolution at the value level).
  
  @param value The value for which to provide the recorded count
  @return The total count of values recorded in the histogram within the value range that is
  {@literal >=} lowestEquivalentValue(<i>value</i>) and {@literal <=} highestEquivalentValue(<i>value</i>)