Neither has nor count are yet in the GraphQL queries.
has
count
Is it not has(pred) that fits your use case?
not has(pred)