mode: Correctly return the number of tokens used.