pub fn non_empty_line_count(input: &str) -> usize
Counts logical lines whose trimmed content is not empty.