import json
f = open('messages.json', encoding="utf8")
data = json.load(f)
f.close()
ppl = {}
x = 0
for i in data["messages"]:
    # ["creator": ["name","email","user_type"] , "created_date" , "text"]
    try:
        ppl[i["creator"]["name"]]
    except:
        ppl[i["creator"]["name"]] = 1
    else:
        ppl[i["creator"]["name"]] += 1
print(sorted(ppl.items(), key=lambda x:x[1], reverse=True))