Count documents in a collection

Return the count of documents in a collection, optionally filtered by a query.