How to query an array field by count (or check for emptiness)

AFAIK, you still can’t query by count, but you can query by existence and non-existence using the has filter.