def _n_rectangles(obj):
return sum(_total_rectangles(neu) for neu in obj.neurites)if hasattr(obj, '<STR_LIT>') else _total_rectangles(obj)<EOL>
Calculate the total number of rectangles with respect to
the type of the object