Added printing of total number of nodes