Add counter column support

I have implemented counter column support on the writing side, please include this into contrib if you too may find this useful.