What you have shown in the first diagram is a bar chart, not a histogram. The y-axis for a histogram is frequency density, not "count" (or frequency)