[mysql] Using group by on two fields and count in SQL