An interesting FAQ(Find the number of open forms in app)(編號:492)

I see a FAQ like the following description, but I don't understand the second way. Why he uses DoEvents to get Form number?
-------------
Q:What is the easiest way to find the number of open forms in my app?
A:There are two ways - equally easy.  The first is to retrieve the form collection count...
numFormsOpen = Forms.Count
...and the second is to use the DoEvents function!...
numFormsOpen = DoEvents