Create histogram from character classes