public void count(HashMap<String,TreeMap<String,Integer>> table,String suffix,String tag){
  TreeMap<String,Integer> counts=table.get(suffix);
  if (counts == null) {
    counts=new TreeMap<String,Integer>();
    table.put(suffix,counts);
  }
  Integer count=counts.get(tag);
  if (count == null)   count=0;
  counts.put(tag,count + 1);
}

public void count ( HashMap < String , TreeMap < String , Integer > > table , String suffix , String tag ) { TreeMap < String , Integer > counts = table . get ( suffix ) ; if ( counts == null ) { counts = new TreeMap < String , Integer > ( ) ; table . put ( suffix , counts ) ; } Integer count = counts . get ( tag ) ; if ( count == null ) count = 0 ; counts . put ( tag , count + 1 ) ; }
increments the count for the given suffix and tag .
