Find all files with the extension ".name" in the current directory, print the name of each file, sort the list of files, count the number of occurrences of each file name, and sort the list of file names by the number of occurrences in descending order.
find . -name '*.name' -exec printf '%s\n' {} + | sort | uniq -c | sort -nr