title: Sort a list and get the most frequent words
body: <p>I am new to python and working on trying to sort the list and get the 3 most frequent words. I am this far yet: </p>
  
  <pre><code>from collections import Counter
  
  reader = open("longtext.txt",'r')
  data = reader.read()
  reader.close()
  words = data.split() # Into a list
  uniqe = sorted(set(words)) # Remove duplicate words and sort
  for word in uniqe:
          print '%s: %s' %(word, words.count(word) ) # words.count counts the words.
  </code></pre>
  
  <p>This is my output, how can I sort the most frequent words and list only first, second and third frequent word?: </p>
  
  <pre><code>2: 2
  3.: 1
  3?: 1
  New: 1
  Python: 5
  Read: 1
  and: 1
  between: 1
  choosing: 1
  or: 2
  to: 1    
  </code></pre>