Rundiz/Profiler/Profiler.php
public function countTotalLogType($logtype)
    {
        $count = 0;

        if (isset($this->log_sections['Logs']) && is_array($this->log_sections['Logs'])) {
            foreach ($this->log_sections['Logs'] as $item) {
                if (isset($item['logtype']) && $item['logtype'] == $logtype) {
                    $count++;
                }
            }// endforeach;
            unset($item);
        }

        return $count;
    }
public function countTotalLogType($logtype)
    {
        $count = 0;

        if (isset($this->log_sections['Logs']) && is_array($this->log_sections['Logs'])) {
            foreach ($this->log_sections['Logs'] as $item) {
                if (isset($item['logtype']) && $item['logtype'] == $logtype) {
                    $count++;
                }
            }// endforeach;
            unset($item);
        }

        return $count;
    }
Count total log type in the "Logs" section.

@param string $logtype Accept debug, info, notice, warning, error, critical, alert, emergency. referrer: http://www.php-fig.org/psr/psr-3/
@return integer Return counted total log type in the "Logs" section.