renaming an instantiation

Hopefully this is a simple one:

How would I go about instantiating a prefab and giving it a unique name, ie: cube1, cube2, cube3, etc? I can set up a counter and I’ve got the instantiate part down. Just not sure about how to rename the newly-created prefab.

just set the name property on the return object of the instantiate call

Sorry, not quite understanding. A code example would help. return object?

var obj = Instantiate( ... );
obj.name = "yada new nama";