Future<int> count(TFilter filter) async { return _dio.post(url("count"), data: filter.toJSON()).then( (response) => (response.data as num).toInt(), ); }