moves file count into loop checking file extensions