Looking around some more, you may be able to get at the "end" value:
$listbox->index(index)
Returns the integer index value that corresponds to index. If inde
+x is end the return value is a count of the number of elements in the
+ listbox (not the index of the last element).