title: Python descending order of wordcount
body: <p>I'm using this code to count the frequency of word appearance in a text file: </p>
  
  <pre><code>#!/usr/bin/python
  file=open("out1.txt","r+")
  wordcount={}
  for word in file.read().split():
      if word not in wordcount:
          wordcount[word] = 1
      else:
          wordcount[word] += 1
  for k,v in wordcount.items():
      print k, v
  </code></pre>
  
  <p>How can I print the output in the descending order of frequency numbers? </p>