Count input files and get total input size