@jboss.query is only for finder methods. There is no @jboss.select in XDoclet 1.2b2 which I have.
Also, it is EJB QL, and as far as I know it does not have the feature COUNT - I may be mistaken here. A quick look at Sun's EJB documentation did not find COUNT.
I tried EJBSelect methods but got problems with the method calling the EJBSelect method from within the same EJB CMP bean. I am back to finders - more code but at least they work for me.
Hope this helps.