Count windows pdf

How do I know how many pdf windows are open?

My process generates more than one PDF, I need to save them all, but I can only identify the last open window