title: How to convert string to dictionary, and count the number of each word
body: <p>I am just wondering how i would convert a string, such as "hello there hi there", and turn it into a dictionary, then using this dictionary, i want to count the number of each word in the dictionary, and return it in alphabetic order. So in this case it would return:</p>
  
  <pre><code>[('hello', 1), ('hi', 1), ('there', 2)]
  </code></pre>
  
  <p>any help would be appreciated</p>