Check out Forms collection in Visual basic Help.

to count no of forms at run time.
eg:
forms.count