pub fn node_count(expr: &Expression) -> usize
Count the total number of AST nodes in the expression tree.