Instead of defining NumChildren as a class property, you could also define it as a variable, then initialize the variable in a script. For example, in your include file, you would have:
winclass DialogBox : DialogBox INTEGER NumChild2 // list of custom verification properties LIST OF STRING lsPropertyNames = {"NumChild2"}
Find.NumChild2 = ListCount(Find.GetChildren ())