How to Filter Dataset, but Count a Field Key not Included in Filter?

You’ll need to query() the data collection directly with the same set of .eq() statements plus your filter for genes however that is defined. Then do a .count() on that. Essentially your Dataset doesn’t contain all the data in your collection at any given time, it loads it dynamically as more data is needed to display.