code: function() {
          for (var i = 0, count = 0;i< this.children.length;i++) {
              count += this.children[i].getNodeCount();
          }
          return count + 1;
      }
docs: Count of nodes in a branch
  @method getNodeCount
  @return {int} number of nodes in the branch