Request for a script to rename sequentially selected objects

 From:  Moi3dFan
11554.1 
Is there any possibility to create a script that will number objects depending on the sequence of clicking on them?

That is, you select everything in the right order, and the script assigns a number to them, I think this is very useful