add function to return number of histogram entries