import re def main(): s = input() t = input() print(len(re.findall(t, s))) if __name__ == "__main__": main()