Trouble in Plotting Histogram Plot

I have made a code for histogram plot but it seems uncomfortable for me. Can you please re-edit the code such that it looks similar to this image.


  1. The numbers on X-axis must lie exactly in the middle of plot
  2. The counts for each plot must be denoted on Y axis.

I have tried many different configuration but I cannot get any satisfying plot. I am attaching code for your reference.

from matplotlib import pyplot as plt
import numpy as np
# Creating dataset
a = np.array([0,1,7,2,5,8,16,3,19,6,14,9,9,17,17,4,12,20,20,7,7,15,15,10,23,10,111,18,18,18])
# Creating histogram
fig, ax = plt.subplots(figsize =(10, 7))

# Show plot

Thanks in advance.