adding counter for barcode files