Function nodeCount