pub fn count_chars(data: &[u8], utf8: bool) -> u64
Count characters, choosing behavior based on locale.