How to set TOTALDISCS and TOTALTRACKS?

iTunes does not generate this information from scratch but reads that what is there.
DetlevD's script helps you to get this information initially so that iTunes can display it, too.
Also, the additional tag fields are, as DetlevD described, only included temporarily while the numbering is on the way, and are removed afterwards.