Add counter for the workers in DistributedMasterSlaveSubparts