def get_count_and_move(s: str, pos: list) -> int:
    """
    Extract a repeat {count} from s[pos[0]:]

    Args:
        s (str): the string to extract from.
        pos (list): pos[0] points to the next char in s to start extracting.

    Returns:
        int: the repeat count that was extracted.
        pos[0]: since it's pass-by-reference, this function advances pos[0],
        then implicitly returns pos[0] to the caller.

    """

    if pos[0] >= len(s) or s[pos[0]] != '{':
        return 1

    # Extract the substring that begins after '{' and ends before '}',
    # then cast that substring to an integer.
    # Advance pos[0] to the position after '}'
    pos[0] += 1
    end = s.index('}', pos[0])
    count = int(s[pos[0]:end])
    pos[0] = end + 1
    return count