pub fn count_breaks(text: &str) -> usize
Counts the line breaks in a string slice.
Runs in O(N) time.