public function total($level = 'all')
    {
        return (int) $this->sum(function (Log $log) use ($level) {
            return $log->entries($level)->count();
        });
    }
public function total($level = 'all')
    {
        return (int) $this->sum(function (Log $log) use ($level) {
            return $log->entries($level)->count();
        });
    }
public function total ( $ level = 'all' ) { return ( int ) $ this -> sum ( function ( Log $ log ) use ( $ level ) { return $ log -> entries ( $ level ) -> count ( ) ; } ) ; }
Get entries total.

@param  string  $level

@return int
Get entries total .