@Override
  public void inc(final long amount) {
    backedCounter.inc(amount);
    if (stepCounter.addAndGet(amount) % step == 0) {
      task.run();
    }
  }
Increments the stepCounter by amount. Triggers the runnable if the step is hit.

@param amount the value to add to the stepCounter.
metrics/core/src/main/java/org/hyperledger/besu/metrics/RunnableCounter.java