Your Word Counter Is Lying to You: How Unicode Breaks Naive Word Splitting
Open any "how to count words in JavaScript" tutorial and you will see the same one-liner:
const count = text.trim().split(/\s+/).length;
It works for "hello world". It falls apart the moment real tex