USelection::Num

Returns the number of objects in the selection set.