Returns the number of versions in the collection.
If no elements are contained in the collection, then the default value 0 is returned.