def METHOD_NAME(
    job_result_and_count: Tuple[job_run_result.JobRunResult, int]
) -> job_run_result.JobRunResult:
    """Adds count to the stdout or stderr of the JobRunResult.
    Args:
        job_result_and_count: tuple(JobRunResult, int). Tuple containing
            unique JobRunResult and their counts.
    Returns:
        JobRunResult. JobRunResult objects with counts added.
    """
    job_result, count = job_result_and_count
    if job_result.stdout:
        job_result.stdout += ' %s' % str(count)
    if job_result.stderr:
        job_result.stderr += ' %s' % str(count)
    return job_result