Why is count incremented at every line? The final print
statement actually reports the total number of lines searched,
not the total number of files. It also seems to output a line
count to STDOUT - which could get messy if you are searching
16,000+ files... You proabably need to move the statements with count
outside the inner while loop. (unless each file is exactly one line long,
in which case it doesn't make a difference)