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