old_contents: #  File:       word_count.py
  #  Purpose:    Write a program that given a phrase can count the occurrences of each word in that phrase.
  #  Programmer: Amal Shehu
  #  Course:     Exercism
  #  Date:       Friday 2nd September 2016, 10:15 AM
  
  def word_count():
      
  
new_contents: #  File:       word_count.py
  #  Purpose:    Write a program that given a phrase can count the occurrences of each word in that phrase.
  #  Programmer: Amal Shehu
  #  Course:     Exercism
  #  Date:       Friday 2nd September 2016, 10:15 AM
  
  
  def word_count(words):
  
      split = words.split()
      print (split)
      for x in split:
          c = split.count(x)
          print (x, c)
  word_count("olly olly in come free")
  
subject: split and count added