Prefer spawnedUnits.Count(actor => ...)