import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines s = readline().decode().strip() t = readline().decode().strip() ans = s.count(t) print(ans)