code: def count(self, item):
          
          try:
              return self.items.get(item, 0)
          except TypeError:
              return self.items.get(repr(item), 0)
docs: Returns number of occurrences of item in DEPQ. Performance: O(1)