Get the total number of documents that match query parameters

n_docs(query)

Arguments

query

a query_agg(), query_fetch(), or query_str() object

Details

Note: the number returned is not necessarily the same number of documents that a fetch query will return. That depends on the value set for max.