begin code for quiz4, chapter9,T4.java and FilesCount.java