Concept Flow - estimatedDocumentCount for speed
Start estimatedDocumentCount
Send count request to server
Server uses collection metadata
Return estimated count quickly
Use count result in app
The estimatedDocumentCount method quickly returns an approximate count of documents by using collection metadata without scanning all documents.