dist/jquery.fancytree-all-deps.js
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;
		}
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;
		}
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 ; }
Count direct and indirect children.

@param {boolean} [deep=true] pass 'false' to only count direct children
@returns {int} number of child nodes
Count direct and indirect children .