public boolean count ( String name , Comparable value ) { Counter counter = map . get ( name ) ; if ( counter == null ) { counter = add ( name ) ; } return counter . count ( value ) ; }
Add value to the named counter . Add counter if it doesnt already exist .