FMassEntityQuery::GetNumMatchingEntities

Sums the entity range lengths for each collection in EntityCollections, where the collection's archetype matches the querie's requirements.