S = input() T = input() ans = 0 while T in S: i = S.index(T) ans += 1 S = S[i+len(T):] print(ans)