def count_crossing_points(bpmn_graph):
flows = bpmn_graph.get_flows()<EOL>segments = get_flows_segments(flows)<EOL>crossing_point_num = <NUM_LIT:0><EOL>while segments:<EOL><INDENT>segment_one = segments.pop()<EOL>for segment_two in segments:<EOL><INDENT>if segments_common_points(segment_one, segment_two) is False and do_intersect(segment_one, segment_two):<EOL><INDENT>crossing_point_num += <NUM_LIT:1><EOL><DEDENT><DEDENT><DEDENT>return crossing_point_num<EOL>
:param bpmn_graph:
:return: