title: Number of Groups returned by a query
body: <p>I am using an SQL query with of form</p>
  
  <pre><code>SELECT...FROM...WHERE...GROUP BY id
  </code></pre>
  
  <p>I want to know how many groups this query returns. How to do this?</p>