Function count

Source
fn count(root: &StreamNode, p: &impl Fn(&StreamNode) -> bool) -> usize