title: Array to Hash : words count
body: <p>I have array of words and I want to get a hash, where keys are words and values are word count.</p>
  
  <p>Is there any more beautiful way then my:</p>
  
  <pre><code>result = Hash.new(0)
  words.each { |word| result[word] += 1 }
  return result
  </code></pre>