s = str(input()) t = str(input()) if t in s: print(s.count(t)) else: print("0")