Count documents
countRetrieves the number of documents in an index, optionally filtered by a Query DSL query.
Instructions
Count the documents in an index that match an optional Query DSL query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name, comma-separated list, or pattern | |
| query | No | Query DSL query object; omit to count every document |