Bash script to count pages of pdfs in current directory