var selBox = scene.getBoxById("myListBox"); if (selBox) { shell.print("There are currently " + selBox.rowCount + " rows in this container."); }