public static function count($message = '') {
		if (!self::$_enabled) {
			return;
		}

		if (self::$ensureByGet && !isset($_GET['debug'])) {
			return;
		}

		/* Get a new ADEBUG object */
		$debug = new THEDEBUG\ADEBUG(array(1));

		/* And its ID (calculated using file and line) */
		$ID = $debug->getID();

		/*
		 * just increment the counter and return if this is		
		 * not the first time called from this file and line,
		 */
		if (isset(self::$counts[$ID])) {
			unset($debug);
			self::$counts[$ID]->variable++;
			return;
		}

		/* Register output on destruction */
		$debug->putOnDestruction = true;

		/* Generate the message or insert the passed one */
		if (empty($message)) {
			$debug->name = sprintf(
				'File %s, Line %s was visited',
				$debug->file,
				$debug->line
			);
		} else {
			$debug->name = $message;
		}

		/* Register callback to add time/s to the counter */
		$debug->addCallback('beforePut', function (&$debug) {
			if ($debug->variable === 1) {
				$debug->variable .= ' time.';
			} else {
				$debug->variable .= ' times.';
			}
		});

		/* Add the debug to the collection of counts */
		self::$counts[$ID] = $debug;
	}
public static function count($message = '') {
		if (!self::$_enabled) {
			return;
		}

		if (self::$ensureByGet && !isset($_GET['debug'])) {
			return;
		}

		/* Get a new ADEBUG object */
		$debug = new THEDEBUG\ADEBUG(array(1));

		/* And its ID (calculated using file and line) */
		$ID = $debug->getID();

		/*
		 * just increment the counter and return if this is		
		 * not the first time called from this file and line,
		 */
		if (isset(self::$counts[$ID])) {
			unset($debug);
			self::$counts[$ID]->variable++;
			return;
		}

		/* Register output on destruction */
		$debug->putOnDestruction = true;

		/* Generate the message or insert the passed one */
		if (empty($message)) {
			$debug->name = sprintf(
				'File %s, Line %s was visited',
				$debug->file,
				$debug->line
			);
		} else {
			$debug->name = $message;
		}

		/* Register callback to add time/s to the counter */
		$debug->addCallback('beforePut', function (&$debug) {
			if ($debug->variable === 1) {
				$debug->variable .= ' time.';
			} else {
				$debug->variable .= ' times.';
			}
		});

		/* Add the debug to the collection of counts */
		self::$counts[$ID] = $debug;
	}
public static function count ( $ message = '' ) { if ( ! self :: $ _enabled ) { return ; } if ( self :: $ ensureByGet && ! isset ( $ _GET [ 'debug' ] ) ) { return ; } /* Get a new ADEBUG object */ $ debug = new THEDEBUG \ ADEBUG ( array ( 1 ) ) ; /* And its ID (calculated using file and line) */ $ ID = $ debug -> getID ( ) ; /*
		 * just increment the counter and return if this is		
		 * not the first time called from this file and line,
		 */ if ( isset ( self :: $ counts [ $ ID ] ) ) { unset ( $ debug ) ; self :: $ counts [ $ ID ] -> variable ++ ; return ; } /* Register output on destruction */ $ debug -> putOnDestruction = true ; /* Generate the message or insert the passed one */ if ( empty ( $ message ) ) { $ debug -> name = sprintf ( 'File %s, Line %s was visited' , $ debug -> file , $ debug -> line ) ; } else { $ debug -> name = $ message ; } /* Register callback to add time/s to the counter */ $ debug -> addCallback ( 'beforePut' , function ( & $ debug ) { if ( $ debug -> variable === 1 ) { $ debug -> variable .= ' time.' ; } else { $ debug -> variable .= ' times.' ; } } ) ; /* Add the debug to the collection of counts */ self :: $ counts [ $ ID ] = $ debug ; }
Count how often this line is visited and put the debug at the end of the script.

@param string $message optional message

@return void
Count how often this line is visited and put the debug at the end of the script .