count method

AggregateQuery count()

Returns an AggregateQuery that counts the documents in the result set of this query without downloading them.

Implementation

AggregateQuery count() =>
    AggregateQuery(this, <AggregateField>[AggregateField.count()]);