change global variable incrementing to tokudb partitioned counter