def main(): from sys import stdin readline=stdin.readline s = input() t = input() print(s.count(t)) main()