'''
Write a Python program to count the number occurrence of a specific character in a string
'''

while True:
    #string = raw_input("Enter the string: ").lower()
    #letter = raw_input("Enter the letter to count: ").lower()

    print raw_input("Enter the string: ").lower().count(raw_input("Enter the letter to count: ").lower())