set batch_flush_counter to int