count records.
Future<int> count(DatabaseClient client) async => (await getSnapshots(client)).length;