method Collection.prototype.countDocumentsimport { Collection } from "https://deno.land/x/mongo@v0.33.0/src/collection/mod.ts"; countDocuments(filter?: Filter<T>, options?: CountOptions): Promise<number>Count the number of documents matching the given filter Parametersoptionalfilter: Filter<T>The query used to match documents optionaloptions: CountOptionsAdditional options for the operation ReturnsPromise<number>The number of documents matching the filter