Adds count to flag query results.

Minor addition for convenience.