pub fn vec_count_where<T, F: Fn(&T) -> bool>(v: &[T], pred: F) -> usize
Count elements matching a predicate.