pub fn count_str_bytes<F>(inp: &str, f: F) -> usizewhere F: FnMut(char) -> bool,
Counts the number of bytes that got accepted by f.
f