main: Properly set number of nodes.