#happy = "I felt happy because I saw the others were happy and because I knew I should feel happy but I was not really happy"
happy = input("Insert text: ")

words = happy.split()

counts = {}
for word in words:
    counts[word] = counts.get(word, 0) + 1

print(counts)

@@ -138,18 +138,38 @@
 ut(%22
-Insert tex
+Enter a statement to word coun
 t: %22

add helper text to input function