dead simple stats counter that flushes to disk