code: def word_count(text, html=True):
      
      if html:
          text = _tag_re.sub(' ', text)
      text = _strip_re.sub('', text)
      text = _punctuation_re.sub(' ', text)
      return len(text.split())
docs: Return the count of words in the given text. If the text is HTML (default True),
      tags are stripped before counting. Handles punctuation and bad formatting like.this
      when counting words, but assumes conventions for Latin script languages. May not
      be reliable for other languages.