Even with my latest transaction fixes to update the “Needs Review” count, I found cases where it was not being updated. Presumably this is because the message bus was not firing or somehow got interrupted.
I remembered the old flags page had a system to update the flag count manually every time you visited it, so I copied that idea to the new queue:
https://github.com/discourse/discourse/commit/cbc311e4ed87705bbee05e7cbf6e8fa8178d3e1e