# 输入,字母和数字组成, 字符 # 输出,个数 a = input() b = input() # 输入处理,不区分大小写,都换成小写即可 def change(s): new_s = '' for i in s: if 'A' <= i <= 'Z': i = chr(ord(i) + 32) new_s += i return new_s new_a = change(a) new_b = change(b) print(new_a.count(new_b))