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