Improved total words calculation

If the target is a complex DOM node, the amount of chained whitespace can be quite significant. I've seen it double the estimated word count because of the way the total is calculated here, this change yields far more accurate counts.