Added ability to spec number of histogram ticks on x axis.