title: Mapping/Counter, Python
body: <p>I am new to counter and mapping function. I am writing a function that takes in a string and counts the different words and outputs in a dictionary the words and how many times they show up. </p>
  
  <p>I have some questions around the map and counter functions. I know my following code works, but am not confident I truly I understand I need to assign my input string to "strs" and use that in the map function.</p>
  
  <p>I also am not sure how to print the dictionary without the word "counter":</p>
  
  <pre><code>def wordCount(inputString):
  
      from collections import Counter
      strs = inputString
      c = Counter(map(str.lower,strs.split()))
      print c
  
  inputString = 'I like pizza, beer, and more pizza'
  wordCount(inputString)
  </code></pre>