only do maxDeltaTime if there are rows, make count only count distinct items, some...