code: function(deep) {
  			var cl = this.children,
  				i,
  				l,
  				n;
  			if (!cl) {
  				return 0;
  			}
  			n = cl.length;
  			if (deep !== false) {
  				for (i = 0, l = n; i < l; i++) {
  					n += cl[i].countChildren();
  				}
  			}
  			return n;
  		}
docs: Count direct and indirect children.
  
  @param {boolean} [deep=true] pass 'false' to only count direct children
  @returns {int} number of child nodes