Shannon-Fano coding in Wolfram

I’m trying to make a function that codes a string of text using the Shannon-Fano method. I get characters using the CharacterCounts function, and I want to make a Grid with individual characters in the first line, and the probability of them in the second line.

How do I separate the characters and their counts from the CharacterCounts function output? Is it even possible?