Find all files with the extension ".pdf" in the current directory, display the type of each file, sort the results, count the number of occurrences of each type, and sort the results by the number of occurrences in descending order.
find . -type f -iname "*.pdf" | xargs file -b | sort | uniq -c | sort -k1,1nr