TaskDistributionTool: do not use countMessage, which could lead to race conditions in this context