driver-core/src/main/com/mongodb/client/model/Updates.java
public static Bson inc(final String fieldName, final Number number) {
        notNull("number", number);
        return new SimpleUpdate<Number>(fieldName, number, "$inc");
    }
public static Bson inc(final String fieldName, final Number number) {
        notNull("number", number);
        return new SimpleUpdate<Number>(fieldName, number, "$inc");
    }
Creates an update that increments the value of the field with the given name by the given value.

@param fieldName the non-null field name
@param number    the value
@return the update
@mongodb.driver.manual reference/operator/update/inc/ $inc