Basic counter support for WAL.