What counts as a word
A word is a run of text holding at least one letter or a digit, taken apart at the spaces. That single rule is why `don’t`, `3.14` and `some/path/notes.txt` are one word each - nobody would call them two - and why a dash on its own is not a word at all. A hyphenated compound is either one word or several depending on the switch you choose, and that setting alone can move a count by a few per cent on ordinary prose and by a tenth on a page full of hyphenated technical terms.
Chinese and Japanese are written without spaces between words, so the same rule that works for English would call a whole paragraph one word. Each Han, Hiragana and Katakana character is counted as a word instead, which is the convention a word processor follows. Korean is deliberately excluded: Hangul is written with spaces, and its syllables are not words. Emoji are counted as characters, never as words, and the frequency table reads a word without the punctuation around it, so `stop,` and `stop.` are one entry rather than two.