EdgeDB has functions that operate on whole sets. These are
commonly known as "aggregate functions" in other databases.
The set of
syntax in their signature makes them easy to spot:
std::count(s: set of anytype) -> int64
Try out a few built-in aggregate functions: