initialize counter buffers
make both snapshotting and counting work