pub fn count_tokens(text: &str) -> usizeExpand description
Count tokens the way Claude does. Falls back to estimate_tokens on failure.
pub fn count_tokens(text: &str) -> usizeCount tokens the way Claude does. Falls back to estimate_tokens on failure.