Modified automatic sync behavior to increment sync counter only on inserts and deletes.