Adds the ability to set the number of bins on a histogram