def n_forking_points(neurites, neurite_type=NeuriteType.all):
    '''number of forking points in a collection of neurites'''
    return n_sections(neurites, neurite_type=neurite_type, iterator_type=Tree.iforking_point)