pub fn count(text: &str) -> Result<usize, Error>
Counts tokens in the entire input using the same rules and errors as encode.
encode