pub async fn count_records(db: &Db, table: &str) -> Result<i64, Error>
SELECT COUNT(*) FROM "<table>". Used by the table footer to render the “Showing N of M” label and by the page header to produce the records-count subtitle.
SELECT COUNT(*) FROM "<table>"