Adding test that verifies #227 - criteria is ignored in `count`

Hotfix for #227