def tag_sibling_ordinal(tag):
tag_count = <NUM_LIT:0><EOL>return len(tag.find_previous_siblings(tag.name)) + <NUM_LIT:1><EOL>
Given a beautiful soup tag, count the same tags in its siblings
to get a sibling "local" ordinal value. This is useful in counting
child figures within a fig-group, for example