from typing import Counter


def get_messages_lengths_countered(msgs):
    """Counts the length of each message.

    Args:
        msgs (list of MyMessage objects): Messages.

    Returns:
        collections.Counter of messages lengths.
    """
    return Counter([len(msg.text) for msg in msgs])