S = input() T = input() ans = S.count(T) print(ans)