def METHOD_NAME(rects):
    for rect in rects:
        height = rect.get_height()
        ax.text(rect.get_x()+rect.get_width()/2., 1.05*height, '%d' % int(height),
                ha='center', va='bottom')