move everything to use histogram and add a measure of partition count.