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