added code to get the total number of customers in the input files