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