Updating index
Adding counters