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