I am new to python and I wonder if there is a way to sort the key depend on number of words in each key of a dictionary. For example I have a dictionary like below: