logigng for multifile wordcount