count before/after rows
some dupe pruning