add function to compute workers of each block
adds a small function to disttool to compute the number of workers of each block created by block_distribute
adds a small function to disttool to compute the number of workers of each block created by block_distribute