def _count_boolean_expressions(bool_op):
nb_bool_expr = <NUM_LIT:0><EOL>for bool_expr in bool_op.get_children():<EOL><INDENT>if isinstance(bool_expr, BoolOp):<EOL><INDENT>nb_bool_expr += _count_boolean_expressions(bool_expr)<EOL><DEDENT>else:<EOL><INDENT>nb_bool_expr += <NUM_LIT:1><EOL><DEDENT><DEDENT>return nb_bool_expr<EOL>
Counts the number of boolean expressions in BoolOp `bool_op` (recursive)

    example: a and (b or c or (d and e)) ==> 5 boolean expressions