fn count_nodes(krate: &Crate) -> usize