title: Print 10 most frequently occurring words of a text that including and excluding stopwords
body: <p>I got the question from <a href="http://www.nltk.org/book/ch02.html" rel="nofollow noreferrer">here</a> with my changes. I have following code:</p>
  <pre><code>from nltk.corpus import stopwords
  def content_text(text):
      stopwords = nltk.corpus.stopwords.words('english')
      content = [w for w in text if w.lower() in stopwords]
      return content
  </code></pre>
  <p>How can I <strong>print</strong> the 10 most frequently occurring words of a text that 1)<strong>including</strong> and 2)<strong>excluding</strong> stopwords?</p>