pub fn count_chars<'a>(contents: &'a str) -> usize