count all nodes, not just head nodes