character frequency charts refactor