Strange count query #553 fix
Merge pull request #554 from WARrior-Alex/master

Fix count query