Find all files with the extension ".txt", take each file one at a time and display its contents, sort the contents, and count the number of occurrences of each line.
find -name "*.txt" | xargs -n1 cat | sort | uniq -c