code: public int size() {
  		int result = 0;
  		for (O o : multiplicities.keySet()) {
  			result += multiplicity(o);
  		}
  		return result;
  	}
docs: Returns the number of elements, i.e. the sum of all multiplicities.
  
  @return The number of all elements.