For mice I use a chalk pen and write the number of babies produced on the tub as well as litter number (knowing that when they produce litter #5 they retire)
For Rats I write the number of baby produced, if under 10 they are retired one the babies are fed off.