@classmethod
    @serializable
    def count(cls, filter=None, **kwargs):
        return cls.collection.count(filter, **kwargs)
Returns the number of documents that pass the filter
dataset/ETHPy150Open lvieirajr/mongorest/mongorest/collection.py/Collection.count