I was wondering how does TeX manage counters. In particular, assuming I define a new counter in TeX by \newcount\mycounter and at some point I don't need it anymore, can I delete it and free the associated registry?
This may be useful when one needs to use a sequence of counters \c1, \c2, ..., \c<n> where n may become large, and at some point there is no need for some of the counters in the sequence (say, up to some index).