s = str(input()) t = str(input()) import re m = re.findall(t, s) print(len(m))