title: How to select the sum of multiple count() selections in JPQL
body: <p>What's the equivalent JQPL statement of the following SQL statement:</p>
  
  <pre><code>SELECT (SELECT COUNT(*) FROM foo) + (SELECT COUNT(*) FROM bar)
  </code></pre>