Returns the number of subentities of specified root entity currently selected. If root entity is not specified then returns number of all selected subentities.