with open('pushkin.txt') as file:
text = file.read()
word = input()
count = 0
def search():
if word in text:
global count
count += 1
return count
else:
return 'Word not found'
if __name__ == '__main__':
search()