frequency function

Replacing the Index of Objects