count the #nodes