keep a counter of how many nodes are in the walletTree