How to make a histogram with non numeric data