count_outcomes of function, improved histo print