The stored findings_count only moves when a scan runs, so findings
entered by hand, imported or deleted left the list wrong (0 for a
target with only manual findings). The list now counts each target's
findings in one aggregation and falls back to the stored count if the
query fails.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p