title: Mysql Count
body: <p>I have the following query:</p>
  
  <pre><code>select MIN(q.a), * FROM 
     (
       sub-query1
     ) as q
     UNION
     sub-query2
  </code></pre>
  
  <p>How can I return the number of elements in query1 as a row of master-query?</p>
  
  <hr>
  
  <p>If i use count (*) i´ve only the count</p>
  
  <p>CountElementSub-Query1</p>
  
  <p>i need some like that</p>
  
  <pre><code>rowA, rowB, rowC, CountElementSub-Query1
  rowA, rowB, rowC, CountElementSub-Query1
  rowA, rowB, rowC, CountElementSub-Query1
  rowA, rowB, rowC, CountElementSub-Query1
  </code></pre>