Counts the linked objects in the database.
It does not take the local state into account and can even be used without loading the link.
Future<int> count() => filter().count();