word count with CJK support