Multicategory histograms