Token counting problem, help needed

Seems like that old bug is happening again