'The sample count determines the number of samples.'

@capture_logging(None)
def test_sample_count(self, _logger):

    samples_ready = benchmark(FakeScenario(), FakeOperation(repeat(True)), FakeMetric(count(5)), 5)
    def check(outputs):
        (samples, _scenario_metrics) = outputs
        self.assertEqual(len(samples), 5)
    samples_ready.addCallback(check)
    return samples_ready
