handling automatic numbering when there are no items in collection