Returns the number of objects in the selection set. This function is used by clients in conjunction with op::() to iterate over selected objects. Note that some of these objects may be NULL, and so clients should useCountSelections()to get the true number of non-NULL selected objects.