corrected count query to not use order by
Merge pull request #55 from sulu-cmf/bugfix/count-query

corrected count query to not use order by