Number of figures opened

Hi everyone,

Simple question: Is there any way to know how many figures are there
opened in a moment?

You know, so the program doesn't draw over an existing one, just
creates a new figure.

Thanks!

Greetings,
Manuel