Node root; void setup (){ root = new Node( 10, null, null ); root.addLeftChild( 11 ); root.left.addLeftChild( 334341 ); root.left.addRightChild( 10 ); root.left.left.addRightChild( 33434342 ); root.left.left.addLeftChild( 3334 ); root.left.right.addLeftChild( 6342 ); root.left.right.addRightChild( 63 ); Node temp = root; for( int i=0; i<5; i++ ) { temp.addRightChild( i ); temp = temp.right; } println( size( root ) ); println( "\n\n" ); } int size( Node n ) { if( n == null ) { return 0; } else { return size(n.left) + 1 + size(n.right); } }