public static function count ($status = FALSE)
	{
		
		// If no status return all messages
		
		if ($status === FALSE)
		{
			return count (self::$messages);
		}
		
		// Return messages for a specific status
		
		if (isset (self::$messages[$status]))
		{
			return count (self::$messages[$status]);
		}
		else
		{
			return 0;
		}
		
	}
public static function count ($status = FALSE)
	{
		
		// If no status return all messages
		
		if ($status === FALSE)
		{
			return count (self::$messages);
		}
		
		// Return messages for a specific status
		
		if (isset (self::$messages[$status]))
		{
			return count (self::$messages[$status]);
		}
		else
		{
			return 0;
		}
		
	}
public static function count ( $ status = FALSE ) { // If no status return all messages if ( $ status === FALSE ) { return count ( self :: $ messages ) ; } // Return messages for a specific status if ( isset ( self :: $ messages [ $ status ] ) ) { return count ( self :: $ messages [ $ status ] ) ; } else { return 0 ; } }
Return number of messages
@param mixed $status Message status to count
@return integer
Return number of messages