s = input() t = input() ans = 0 while s.find(t) > -1: s = s[s.find(t) + len(t):] ans += 1 print(ans)