Update the total number of blocks only once in the header.