fn count_series( schema: &Arc<SeriesSchema>, groups: Vec<(SeriesLabels, BTreeMap<usize, Vec<f64>>)>, ) -> Result<Vec<Series>>