After the first message in a new chat, the token counts are 0.
I've verified that they do come from goosed as zero:
"token_state":{"inputTokens":0,"outputTokens":0,"totalTokens":0,"accumulatedInputTokens":0,"accumulatedOutputTokens":0,"accumulatedTotalTokens":0}