ImageMagic converting pdf to images, converted page count
===

i want to learn how many pages will be converted with imagemagic command.

    convert -density 150 -quality 100 -resize 800x "new.pdf" "pdtoimg.jpg"

it returns 6 page with name of pdtoimg-0.jpg to pdtoimg-5.jpg respectively..

is there any way to learn how many pages in a pdf or can i make it writed to converted page name in array?

if i want to take folder len, i have to wait all proccess ending.

