code: def _count_pipelines(opt_history: Optional[OptHistory]) -> int:
      if opt_history is not None:
          return reduce(
              operator.add, map(len, opt_history.individuals), 0
          )
      return 0
  
file_path: FEDOT/examples/advanced/parallelization_comparison.py
imports: import logging
  import operator
  import timeit
  from functools import reduce
  from typing import Optional
  import pandas
  from golem.core.optimisers.opt_history_objects.opt_history import OptHistory
  from matplotlib import cm, colors, pyplot
  from fedot import Fedot
  from fedot.core.utils import fedot_project_root
label_desc: Use image node_id 1 for calling a global function with example usage: _count_pipelines(opt_history) and returns: int, reduce