Future<int> count() async { _log.fine("Count logs"); return (await db.select("SELECT count(id) AS c FROM $_tableName")) .first["c"] as int; }