def counter(word):
    """This function takes a word a counts the number of specified letters in the word"""
    word = word
    count = 0
    for char in word:
        if char == 'a':
            count = count + 1
    return count