src/main/java/eu/digitisation/math/Counter.java
public Counter<Type> add(Type object, int value) {
        int storedValue;
        if (containsKey(object)) {
            storedValue = get(object);
        } else {
            storedValue = 0;
        }
        put(object, storedValue + value);
        total += value;
        return this;
    }
/**
     * Increment the count for an object with the given value
     *
     * @param object the object whose count will be incremented
     * @param value the delta value
     * @return this Counter
     */
Increment the count for an object with the given value
@param object the object whose count will be incremented
@param value the delta value
@return this Counter
Increment the count for an object with the given value @param object the object whose count will be incremented @param value the delta value @return this Counter
public Counter<Type> add(Type object, int value) {
        int storedValue;
        if (containsKey(object)) {
            storedValue = get(object);
        } else {
            storedValue = 0;
        }
        put(object, storedValue + value);
        total += value;
        return this;
    }
public Counter < Type > add ( Type object , int value ) { int storedValue ; if ( containsKey ( object ) ) { storedValue = get ( object ) ; } else { storedValue = 0 ; } put ( object , storedValue + value ) ; total += value ; return this ; }
Increment the count for an object with the given value
 @param object the object whose count will be incremented
 @param value the delta value
 @return this Counter
Increment the count for an object with the given value @param object the object whose count will be incremented @param value the delta value @return this Counter