# Arup Guha
# 7/11/2012
# Counts the number of l's in a word entered.

def main():

    str = input("Enter a word.\n")
    count = 0

    # Go through each letter.
    for i in range(len(str)):

        # Only count it if it's 'l'.
        if str[i] == 'l':
            count = count + 1

    print("Your word has",count,"l's in it.")

main()
