Add printOnFlush option

Useful so the counters don't log/flush random stuff, can have the actual values be logged just before flushing