How to add a counter parameter to a Badge Query?

I think I’ve just answered my own question by adding this on the end of the query:

HAVING count(*) > 4

Just need to confirm / check the proposed results.