count command returns the number of records in a table that match an encoded query. It uses the aggregate API for efficiency — no records are fetched.count
Count records matching a query.
The
sn count <table> <query> Count records matching a query.
Arguments
| Name | Required | Description |
|---|---|---|
| table | Yes | The table to query. |
| query | Yes | Encoded query string. |
Examples
sn count incident "state=1^priority=1"7