onCount stream, called when the number of items changes.
first emit happens synchronously.
Stream<int> onCountSync(Database database) => onSnapshotsSync(database).map((e) => e.length);