public void add(T object,int inc){
  Integer current=map.get(object);
  if (current == null) {
    current=Integer.valueOf(inc);
  }
 else {
    current=Integer.valueOf(current.intValue() + inc);
  }
  map.put(object,current);
}

public void add ( T object , int inc ) { Integer current = map . get ( object ) ; if ( current == null ) { current = Integer . valueOf ( inc ) ; } else { current = Integer . valueOf ( current . intValue ( ) + inc ) ; } map . put ( object , current ) ; }
increments the counter of the specified object
