StyledEdit: fixed statistics words count.

* Bug #9822 and actual fix suggested by DanielW.