Calculate max count when building histograms

Take advantage of the fact that we are already looping through the
histogram when we a building it to calculate the max count instead of
waiting to calculate the max count when displaying the histogram.
Comment out MapView and TimeView for testing

Comment out MapView and TimeView for testing