def METHOD_NAME(self):
    self.reader, self.file_list = get_infer_reader(self.input_data, config)
    self.example_nums = 0
    self.count_method = self.config.get("runner.example_count_method",
                                        "example")
    if self.count_method == "example":
        self.example_nums = get_example_num(self.file_list)
    elif self.count_method == "word":
        self.example_nums = get_word_num(self.file_list)
    else:
        raise ValueError(
            "Set static_benchmark.example_count_method for example / word for example count."
        )