Count the number of lines in all files in a directory