def check_records(msg: dict) -> int:
    """
    Returns the number of records
    sent in the SQS message
    """
    records = 0
    if msg is not None:
        records = len(msg[0])

    if records != 1:
        raise ValueError("Not expected single record")

    return records