Generate Python code to print out the number of times each character appears in a string.
string = 'mississippi'
from collections import Counter

string = 'mississippi'
c = Counter(string)
for char, count in c.most_common():
    print(f"{char}: {count}")