(self, value)
return sum(1 for v in self if v == value)
S.count(value) -> integer -- return number of occurrences of value
S.count(value) -> integer -- return number of occurrences of value
S . count ( value ) - > integer -- return number of occurrences of value
def count(self, value):
        'S.count(value) -> integer -- return number of occurrences of value'
        return sum(1 for v in self if v == value)
def count ( self , value ) : return sum ( 1 for v in self if v == value )