add bins argument to histogram

add bins to histrogram
Merge pull request #6850 from zachcp/histograms

DOC: add bins argument to Histogram function