Count API API: collection.count(query) query is the same query object as in Query API. Returns a promise which resolves with a number of removed objects.