sndev.io / docs

count

Count records matching a query.

The 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.
sn count <table> <query>

Count records matching a query.

Arguments

NameRequiredDescription
tableYesThe table to query.
queryYesEncoded query string.

Examples

sn count incident "state=1^priority=1"
7