add maximum bin count for histograms