add dynamically updating # cataloged

made item global, used SetItemText for the treectrl, reused code to get
item remaining and to find the parent item