The queries in jaws.xml are only to find the pks for entity beans... so if you got what you asked for, the count(*) would have to be the pk for some table. Is this really what you want? (also then the group by is not legal sql)
If you actually want the results from the query you wrote (+ id in select clause), you can execute sql directly from a session bean and put it into (non ejb) objects yourself.
If you want ejb's containing id (pk) and count(*), I suggest you create a view based on your query and use an autogenerated query against the view.