Can't you do ```->select('count(q.country) number, q.contractType')```