Since the Visual InterDev Scripting Object Model wraps all its script objects inside a huge HTML Form, you can count the number of form elements using the form’s length property. However, you can only get an accurate reading of the number of elements after the HTML page has been rendered. Use this script at the end of the page or in an onload event.