title: How to count the number of letters in a string without the spaces?
body: <p>This is my solution resulting in an error. Returns 0</p>
  
  <p>PS: <strong>I'd still love a fix to my code :)</strong></p>
  
  <pre><code>from collections import Counter
  import string
  
  
  def count_letters(word):
      global count
      wordsList = string.split(word)
      count = Counter()
      for words in wordsList:
          for letters in set(words):
              return count[letters]
  
  word = "The grey old fox is an idiot"
  print count_letters(word)
  </code></pre>