remove multiple count queries, fixes #248