output and graph histograms of probability counts