Added kanji count function