def rle_len( rle ):
    """
    Return the number of characters covered by a run length
    encoded attribute list.
    """
    
    run = 0
    for v in rle:
        assert type(v) == tuple, repr(rle)
        a, r = v
        run += r
    return run