How to draw a frequency histogram