Concept Flow - countDocuments method
Start countDocuments call
Apply filter to collection
Scan matching documents
Count matched documents
Return count result
End
The countDocuments method starts by applying a filter to the collection, scans all matching documents, counts them, and returns the total count.