Returns the total number of nodes in the tree model, including hidden nodes in collapsed tree branches.