def _SortDistribution(a, b):
  sys_pos_cmp = cmp(b[0].system_position, a[0].system_position)
  if sys_pos_cmp:
    return sys_pos_cmp

  preferred_cmp = cmp(b[0].is_keeper, a[0].is_keeper)
  if preferred_cmp:
    return preferred_cmp

  return cmp(a[0].name, b[0].name)
Counts the number of elements in the sequence which satisfy the predicate func.
dataset/ETHPy150Open catap/namebench/libnamebench/charts.py/_SortDistribution--crossover with--dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.count