count lines in files and print results