Maxscript help changing name of objects

You could also use UniqueName() then you don’t have to add the numbering yourself.