def METHOD_NAME(remote_command_executor, expected_completed_jobs_count):
    result = remote_command_executor.run_remote_command("ls /shared/job-results | wc -l")
    completed_jobs_count = int(result.stdout.strip())
    assert_that(completed_jobs_count).is_equal_to(expected_completed_jobs_count)