Returns the number of data object locks in the collection.
If no locks are contained, then the default value 0 is returned.