Counts the number of nodes used for a bdd.
Traverses the BDD and counts all distinct nodes that are used for the BDD.