Set block's num_remaining when a block is read.