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