title: Scala groupBy for a list
body: <p>I'd like to create a map on which the key is the string and the value is the number of how many times the string appears on the list. I tried the <code>groupBy</code> method, but have been unsuccessful with that.</p>