string.count(substring, start=..., end=...) 'recede'.count('e') >>> 3 'recede'.count('e', 2, 4) >>> 1