code: public int getCount(Object o) {
      Integer count = (Integer) cset.get(o);   
      if ( count == null ) {
        return(0);
      }
      else {
        return(count.intValue());
      }
    }
docs: Return the count of the specified object.
  @param o the object whose count needs to be determined.
  @return the count of the specified object.