def count(self, item):
        'Return number of occurrences of item'
        k = self._key(item)
        i = bisect_left(self._keys, k)
        j = bisect_right(self._keys, k)
        return self._items[i:j].count(item)
Return number of occurrences of item
recipes/Python/577197_SortedCollection/recipe-577197.py