Counting queries are project specific, fixes a bug