public static class Query.CountProjection extends Projection
Used to count the results of a query
Groovy Documentation