add locations_counter to the index view of datastore