def __eq__(self, value):
        counter = self._get_count()
        return value == counter
== Compare querycounter.
dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/context_managers.py/query_counter.__eq__