So what? It knows number of letters in each token, and can sum them together.
It doesn't.
There's literally no mapping anywhere of the letters in a token.
It's hard to access that mapping though.
A typical LLM can semi-reliably spell common words out letter by letter - but it can't say how many of each are in a single word immediately.
But spelling the word out first and THEN counting the letters? That works just fine.