add an element n times to a bag This default implementation is not efficient, it should be overridden
Size returns the total number of elements.
Size returns the total number of elements. Notice that if an element appears 4 times, it adds 4 to the counter