s = input() t = input() print(s.count(t))