Make number of events to process an input parameter. Manage list of input files.