add linq support to update counter

add linq support to update counter, use set value of the field for
increment.
Also add test for this feature.