• + 0 comments

    Hi. Here my solution to this problem:

    from collections import Counter
    
    palabras = [input() for i in range(int(input()))]
    
    verify = Counter(palabras)
    print(len(verify))
    print(*verify.values())