pub fn create_token_counter(config: &CommitConfig) -> TokenCounter
Create a TokenCounter from config values.
TokenCounter