from collections import Counter
seq = [[1, 2], [1, 2, 4], [1, 2, 3, 4], [4, 5, 6], [1, 9], [1, 2, 4]]
for k, v in Counter(map(len, seq)).most_common():
    pass
How to get statistic of a list of lists in python?