def n_sections(neurites, neurite_type=NeuriteType.all, iterator_type=Tree.ipreorder):
return sum(<NUM_LIT:1> for _ in iter_sections(neurites,<EOL>iterator_type=iterator_type,<EOL>neurite_filter=is_type(neurite_type)))<EOL>
Number of sections in a collection of neurites