I want to do like this picture, but I have no idea to insert "|"

and this is my code.
"""test"""
def counts():
"""process"""
text = input()
text_abc = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in text_abc:
count_text = text.count(i)
if count_text > 0:
ans = "-"* count_text
print("%s : %s"%(i, ans))
counts()
it output like this
my input:"aaaaaaaabbbbbcccdd"
my output:
a : --------
b : -----
c : ---
d : --
how can i do? Thanks in advance for any help that you are able to provide. ps. sorry for my english,I'm not good in english