This ignores HTML tags. If there's an HTML tag in the middle of a word, that'll count as two words. Other than that, it splits words only by whitespace, so if you're one of those "foo--bar" people with em-dashes, you're doomed. It might be a couple words off anyway.
Feature requests and bug (ha!) reports go to wharfinger.