title: JPA multiple count
body: <p>I have a table A with the columns x, y and z. I want to make a query to count the rows where (A.x=1 and A.y=4), (A.x=2 and A.y=7) and (A.x=3 and A.y=3). The result should consist of 3 integers, corresponding to the above criterias.</p>
  
  <p>I don't know if this kind of query is possible.</p>
  
  <p>I would like a sample code in JPA Criteria(preferably) or JPQL or, in worst case, SQL.</p>