update location_count on datafile when location is updated