Fix an error in the generation of tag_node_count

The problem was that tag_node_count was being used before it was
initialized. To fix this we run the graph generator on all children
before running it on the actual root node.
Remove code used for testing
Small change to make code uniform
Make ZZZZ disappear

Goal: Simplify the code by removing ZZZZ's earlier