how to get index of object in array

How to get index of specific object in array of similar objects
like if we have object-1 5 copies then what will be the index of 3rd copy