pit_histogram_sample function

Probability integral transformation for counts