old_contents: def wordcount(happy):
  	words = happy.split()
  	counts = {}
  	for word in words:
  	    counts[word] = counts.get(word, 0) + 1
  
  	print("The word frecuency of your input is: ")
  	print(counts)
  
  def main():
  	happy = input("Enter a statement to word count: ")
  	wordcount(happy)
  
new_contents: def wordcount(happy):
  	words = happy.split()
  	counts = {}
  	for word in words:
  	    counts[word] = counts.get(word, 0) + 1
  
  	print("The word frecuency of your input is: ")
  	print(counts)
  
  def main():
  	happy = input("Enter a statement to word count: ")
  	wordcount(happy)
  
  main()
  
subject: Add main to code