Add linq support for counter

Add linq support for counter, value set in object is used for increment.
Add tests