count method

AggregateQuery count()

Configures the aggregation to perform a count.

Returns: The same AggregateQuery instance configured for counting.

Example:

var countQuery = aggregateQuery.count();

Implementation

AggregateQuery count() {
  return query.count();
}