countCreate an AggregateField object that can be used to compute the count of documents in the result set of a query. function count(): AggregateField<number>;§count(): AggregateField<number>[src]§Return Type§AggregateField<number>[src]