count_eta_documents
Count documents in a specified MongoDB collection with an optional query filter, returning the total number of matching records.
Instructions
Count documents in a collection with optional query filter
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | MongoDB query filter (optional, defaults to {} for all documents) | |
| collection | Yes | Name of the collection to count documents in |