use direct count predicate for test