count method
Implementation
Future<int> count({required String database, required String table, Object? where, Object? params, List<String>? namespace}) async {
final response = await _invoke("count", {
"database": database,
"table": table,
"where": _whereClause(where),
"params": params,
"namespace": namespace,
});
if (response is! JsonContent || response.json["count"] is! num) {
throw _unexpectedResponseError("count");
}
return (response.json["count"] as num).toInt();
}