Count objects matching a predicate
int countWhere(bool Function(T object) test) => _objects.values.where(test).length;