suspend fun MongoClient.countAwait(collection: String, query: JsonObject): Long
Count matching documents in a collection.
collection - the collection
collection
query - query used to match documents
query
resultHandler - will be provided with the number of matching documents
resultHandler
Return