def GetFailureCount():
  try:
    if isinstance(failure_count, int):
      return failure_count
    else:  # It's a multiprocessing.Value() of type 'i'.
      return failure_count.value
  except NameError:  # If it wasn't initialized, Apply() wasn't called.
    return 0
Returns the number of failures processed during calls to Apply().
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/command.py/GetFailureCount