Find all files with the extension ".jpg" in the current directory and its subdirectories, then display the file type of each file, sort the results, and display the number of occurrences of each file type in descending order.
find ~ -type f -iname "*.jpg" -exec file {} \; | cut -d':' -f2 | sort | uniq -c | sort -nr