Fix bug of counting chinese characters and non-chinese characters.