def func(word, letter, starting):
    count = 0
    new_var = word[starting:]
    print(new_var)
    for index in new_var:
        if letter == index:
            count += 1
    print(count)


func('ananas', 'a', 0)

7c22bff1bb33410881c09636485d141c89a20387
<mask token>

def func(word, letter, starting):
    count = 0
    new_var = word[starting:]
    print(new_var)
    for index in new_var:
        if letter == index:
            count += 1
    print(count)


<mask token>

def func(word, letter, starting):
    count = 0
    new_var = word[starting:]
    print(new_var)
    for index in new_var:
        if letter == index:
            count += 1
    print(count)


func('ananas', 'a', 0)
