def branch_order(section):
return sum(<NUM_LIT:1> for _ in section.iupstream()) - <NUM_LIT:1><EOL>
Branching order of a tree section

    The branching order is defined as the depth of the tree section.

    Note:
        The first level has branch order 1.