I'm trying to count the rows of a complicated call I have, such as ...

```
SELECT COUNT(*) FROM ( SELECT *my complicated HQL table request here* )

```

Unfortunately hibernate parser complains about the 'FROM (' part. 

Any suggestions, on how to bypass this issue?