well i was lazy actually, i had piece of code which allowed only 1 instance and since then I have nice add on pack freeware which only allows 1 instance of a program, simply by dropping a component on a form.

pack is called>>GI components, another LMD.

I know you asked specifically for how to know how many processes, but thought i mention that