Add a way to query the number of input files.