Counts lines in files in a directory