How to create a frequency histogram