ds.count refined