static int cntNodes ( Node node ) {
  if ( node == null ) return 0 ;
  return ( 1 + cntNodes ( node . next ) ) ;
}

static int cntNodes ( Node node ) { if ( node == null ) return 0 ; return ( 1 + cntNodes ( node . next ) ) ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (null_literal))) consequence: (return_statement (decimal_integer_literal))) (return_statement (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (method_invocation name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))))))