In VBSCRIPT or JAVA how can I count the number of selected items in a list box/scrolling text box?