def count(self, item):
        """Return the number of occurrences of *item* in the set."""
        # pylint: disable=arguments-differ
        key, value = item
        return 1 if key in self._dict and self._dict[key] == value else 0
Return the number of occurrences of *item* in the set.