title: Count number of MySQL queries executed on page
body: <p>how would I count the number of sql queries executed on one page load?</p>
  
  <p>I have a similar script to time taken for page to be generated, but not for how many queries have been executed.</p>
  
  <p>You know what I mean, such as on SMF forums, in the footer, they have:</p>
  
  <p>Page created in 0.136 seconds with 7 queries.</p>
  
  <p>in the footer?</p>
  
  <p>Replacing all of the mysql_query(ies) isn't really an option, there are way too many mysql_queries to replace, although I could spent a day doing it if needs be.</p>
  
  <p>Thanks</p>