s = input().strip()#字符串 a = input().strip()#字母 s = s.lower() a = a.lower() num = 0 for i in range(len(s)): if a == s[i]: num += 1 print(num)
s = input().strip()#字符串 a = input().strip()#字母 s = s.lower() a = a.lower() num = 0 for i in range(len(s)): if a == s[i]: num += 1 print(num)