updated num block counter to prevent empty blocks in the accordion.