how to obtain a report/table of the histogram of grayvalues

A solution is described in this post: Histogram of volume in regions defined by segments