fn count_line(line: &str, needle: &str) -> usize {
    let mut total = 0;
    for word in line.split(' ') {
        if word == needle {
            total += 1;
        }
    }
    total
}
/// Count the occurrences of needle in line, case insensitive
Count the occurrences of needle in line, case insensitive
Count the occurrences of needle in line case insensitive
fn count_line(line: &str, needle: &str) -> usize {
    let mut total = 0;
    for word in line.split(' ') {
        if word == needle {
            total += 1;
        }
    }
    total
}
fn count_line ( line : & str , needle : & str ) -> usize { let mut total = 0 ; for word in line . split ( ' ' ) { if word == needle { total += 1 ; } } total }
Count the occurrences of needle in line, case insensitive
Count the occurrences of needle in line case insensitive
line
&str
needle
&str
line
&str
needle
&str