Added number of nodes method