Hello,
a bit early, but otherwise I'll forget and people will be surprised/shocked about them losing word count on editing chapters.
This is not an error in the script, it addresses an issue with the built-in word count function of PHP "str_word_count" that leads to non-standard character causing words to be counted multiple times. In theory, it would consider the local settings of the server, but I tested it, and a story that had 1519 words according to word, 1518 according to UltraEdit and 1500-ish according to my counting (j/k, didn't do it), had over 1720 words according to PHP, that's a bit far off to be considered good enough.
The function I implemented (thanks stackoverflow.com) counts 1517 words, which is close enough for me.
Tests with other non-latin languages are on the to-do list, as said above, this is more of an early heads up.