HistogramList
HistogramList[{x1, x2, …}] gives a list of bins and histogram heights of the values xi.
HistogramList[{{x1, y1, …}, {x2, y2, …}, …}]gives a list of bins and histogram heights of the values {xi, yi, …}.HistogramList[…, bspec]gives a list of bins and histogram heights with bins specified by bspec.HistogramList[…, bspec, hspec]gives a list of bins and histogram heights with bin heights computed according to the specification hspec.
Examples
HistogramList[{1, 2, 2, 3, 3, 3, 4, 4, 5}]Please visit the official Wolfram Language Reference for more details.