No.
The number of bins is the number of bars in the histogram
The bin width and number of bins are interrelated, but are not the same.
Data range is the difference between the largest value of the highest bin and the smallest value of the lowest bin.
Bin width equals data range divided by number of bins.
Likewise, data range equals bin width times number of bins and number of bins equals data range divided bin width
Example
Number of bins = 7 and bin width = 50
Bin #1 contains the count of all items between 0 and 50
Bin #2 contains the count of all items between 50 and 100
Bin #3 contains the count of all items between 100 and 150
.
.
.
Bin #6 contains the count of all items between 250 and 300
Bin #7 contains the count of all items between 300 and 350
Data range = 350
Number of bins = 7
Bin width = 50
Bin width = data range ÷ number of bins = 350 ÷ 7 = 50
Data range = bin width * number of bins = 50 * 7 = 350
Number of bins = data range ÷ bin width = 350 ÷ 50 = 7
Additional comment:
1) I would find a histogram with only 7 bars to be of very limited use. The histograms that I use often employ between 100 and 1000 bins. With only 7 bins there is little detail in the histogram.
2) Sometimes the number of bins will be driven by the situation. For example if I were analyzing the colors of a photo, I know that the red, green, and blues values must lie between 0 and 255, so histograms with 256 bins would serve very well. Other times, the bin width may drive the problem. For example, I know that in a certain instrument the digital output value increases in steps of 0.05 volts. It makes no sense to make histogram bins less than 0.05 volts wide, as some bars would necessarily contain only zeros. Histogram bin widths of 0.05 volts, 0.1 volts, 0.25 volts, or other multiple of 0.05 volts would make a useful histogram.
3) The data range does not have to span the entire range of your data. Let's say that most of your data lies in the range from -10 to 10, but some readings in the data are significantly outside that range. Perhaps you have a couple numbers like -55, +72, +20, -15. In most cases you would want to create the histogram so that you can see the detail between -10 and 10 rather than defining a histogram that covers -100 to +100 just so that you can contain your entire range. The points that fall outside the range of your histogram can be counted separately or (more often) included in the bottom bin or the top bin