I have an jQuery function for word counting in textarea field. In addition its excludes all words, which are closed in [[[tripple bracket]]]. It works great with latin chara
You can add the /u flag, which allows you to work with Unicode.
When you add this flag, your example works.