MoneyWorks Manual
Edit
GetFieldCount (windowRef)
Result Type: number
Definition: Returns number of UI objects in a window (note that you can't use GetFieldValue and SetFieldValue on all of them, and some may not have symbolic names).
Availability: available within MWScript handlers.