Bugfix - parameters are set when executing JPQL COUNT query, issue #744.