count() is the memory-friendly way to do it.