Creates a histogram from a phrase