code: public static BucketCounter get(Registry registry, Id id, LongFunction<String> f) {
      return new BucketCounter(registry, id, f);
    }
docs: Creates a distribution summary object that manages a set of counters based on the bucket
  function supplied. Calling record will increment the appropriate counter.
  
  @param registry
  Registry to use.
  @param id
  Identifier for the metric being registered.
  @param f
  Function to map values to buckets. See {@link BucketFunctions} for more information.
  @return
  Distribution summary that manages sub-counters based on the bucket function.