n_nodes function

Determine the number of nodes in a model