count method

int count()

Count how many objects match the query.

This operation is much faster than using findAll().length.

Implementation

int count() => _withQuery((q) => q.count());