title: Count number of queries in each page load of Laravel 5
body: <p>I tried to achive this by listening for query events but I don't seem to have any idea of how I got the count. This is only retrieving list of queries as the callback function cannot modified to return a count variable:</p>
  
  <pre><code>DB::listen(function ($query) {
      var_dump('&lt;pre&gt;'.$query-&gt;sql.&lt;/pre&gt;);
  });
  </code></pre>
  
  <p>I need a solution to count each page executed queries by Laravel.</p>