def get_body_length(htc_struc, body):
    """Get the length of a body from htc structure, given string name"""
    body_contents = htc_struc.get_subsection_by_name(body).c2_def.contents
    last_key = next(reversed(body_contents))
    length = abs(body_contents[last_key].values[-2])
    return length