You mean like a sequential serial number?
Well, you COULD have your setup initiated by a batch file, or another program, and just have an 'include' file in your source that you place the number or data you need in. I've done something like there where I put a serial number and a configuration code in a file that contains nothing else, and then had an external program to keep track of it.
But yes, an automated function to do serial numbers would be nice. I had a Zilog setup for the Z8+ that did that. It would automatically increment a number with each chip burned. But it was more to make each chip unique than for what I needed, or for what I think you want to do.