print number of distinct values for a sequential scan