public/javascripts/yui/treeview/treeview.js
function() {
        for (var i = 0, count = 0;i< this.children.length;i++) {
            count += this.children[i].getNodeCount();
        }
        return count + 1;
    }
function() {
        for (var i = 0, count = 0;i< this.children.length;i++) {
            count += this.children[i].getNodeCount();
        }
        return count + 1;
    }
function ( ) { for ( var i = 0 , count = 0 ; i < this . children . length ; i ++ ) { count += this . children [ i ] . getNodeCount ( ) ; } return count + 1 ; }
Count of nodes in a branch
@method getNodeCount
@return {int} number of nodes in the branch
Count of nodes in a branch