Just counting words as something split on white space wouldn't work for MediaWiki since not all languages split words on white space and even English sometimes spits words on other things than white space or ', "it's" expands to "it is" and it therefor two words.