count method

int count()

Finds the smallest value matching the query. Null values are considered smaller than all other values.

Yields null if there are no objects that match the query.

Implementation

int count() => aggregate(Aggregation.count) ?? 0;