Here is a quick reference on how to count the number of files (of a particular type) in a specific directory, in Linux.

ls -1R /home | grep .*.pdf | wc -l