docs: public static CounterState calculateState(long value, long lowerBound, long upperBound) {
        if (value < lowerBound) {
           return CounterState.LOWER_BOUND_REACHED;
        } else if (value > upperBound) {
           return CounterState.UPPER_BOUND_REACHED;
        }
        return CounterState.VALID;
     }