public long incrementAndGet(V value) {
        synchronized (countMap) {
            countMap.put(value, getCount(value) + 1);
            return countMap.get(value);
        }
    }
public long incrementAndGet ( V value ) { synchronized ( countMap ) { countMap . put ( value , getCount ( value ) + 1 ) ; return countMap . get ( value ) ; } }
Increment and get long.

@param value the value
@return the long