Credit: JavaScript Kit
Type or paste in text and press the Count Words button.