parallelize customized counter at the top level