Task 2/6: Adds count_where(table_where, params) to core.py that compresses the fetch_one + null-check COUNT(*) pattern. Applied across admin/routes.py — dashboard stats shrinks from ~75 to ~25 lines, plus 10 more call sites compressed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>