count occurence of letter in string python code example
Example 1: python count how many times a character appears in a string
string.count('a')
Example 2: string count substring occurences pytohn
string.count(substring, [start_index], [end_index])