write out the num_tokens property to the yaml file