How can I detect/count number of objects spawned in a room?

Just a side note: GetAllActorsOfClass is slow. It works though.