import re s = input() t = input() x = re.findall(t, s) ans = len(x) print(ans)