def count_letter(word, letter):
    count = 0
    for l in word:
        if l == letter:
            count = count + 1
    return count


word = input('Enter a word: ')
letter = input('Enter a letter in word: ')
count = count_letter(word, letter)
print(count)

25fd5a8d277a7265fc95b53125c1f981b9200271
<mask token>

def count_letter(word, letter):
    count = 0
    for l in word:
        if l == letter:
            count = count + 1
    return count


<mask token>

def count_letter(word, letter):
    count = 0
    for l in word:
        if l == letter:
            count = count + 1
    return count


<mask token>
print(count)

def count_letter(word, letter):
    count = 0
    for l in word:
        if l == letter:
            count = count + 1
    return count


word = input('Enter a word: ')
letter = input('Enter a letter in word: ')
count = count_letter(word, letter)
print(count)
