Add put and get support for counters.