onCount stream, called when the number of items changes.
Stream<int> onCount(Database database) => onKeys(database).map((e) => e.length);