DATAJPA-420 - Fixed count projection for manual queries with projections.

Original pull request: #52.