title: Letter count program
body: <p>In my letter counting function, when is use this code</p>
  
  <pre><code> from collections import Counter
  import string
  pickedletter= ()
  count = 0
  word = ()
  
  
  def count_letters(word):
      global count
      wordsList = word.split()
      for words in wordsList:
          if words == pickedletter:
              count = count+1
      return count
  
  word = input("what do you want to type? ")
  pickedletter = input("what letter do you want to pick? ")
  print (count_letters(word))
  </code></pre>
  
  <p>I get that the amount of a certain letter is 0, no matter what. For example, here is what I got in the command prompt</p>
  
  <pre><code>what do you want to type? rht
  what letter do you want to pick? r
  0
  &gt;&gt;&gt;
  </code></pre>
  
  <p>How would you fix this to get how many times a letter appears in a string?</p>