def METHOD_NAME(self, item):
    'S.count(value) -> integer -- return number of occurrences of value'
    item_id = id(item)
    cnt = sum(1 for _v in self._data if id(_v) == item_id)
    assert cnt == 1
    return cnt