PY
py
1
2
3
4
5
6
words, pattern = input().lower().split(',')
words = [i.strip() for i in words.split()]
pattern = pattern.strip()
print("Word '{}' appear {} time(s)".format(pattern, words.count(pattern)))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run