how to save a text with variable value when you change scenes?

So i have a text that counts when you click, you gather a resource, lets call it logs. you click click click, and you get so many logs. the text shows logs: and whatever number of logs you currently have.

Then you change scenes and it doesn’t keep that count stored in the text when it changes. I tried making the text file a prefab, and then sticking it on both scenes but that just keeps it at the 0 starting value when you change scenes.

i originally didn’t think this would be as tricky as it has been, what would be the best way to attempt to keep a score, or counter text to hold the value as you change scenes?

Also, kind of in the same vein of this question, what would be the best way to make a UI text element only appear once it has been called on? like once you cut and gather a log in this example then the text shows up and says logs: 1 instead of just having the UI text sitting there saying Logs: 0 ? would like it to appear as the user gets the material, and then disappear once that material reaches 0.

Few options to keep the values between scenes:

Tutorial,
http://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/persistence-data-saving-loading

thank you! appreciate you taking the time to get me those links.

looks like the dontdestroy on void awake is working great to save the value when i leave the scene and come back, would i need to make that actual UI text then a prefab, and place that prefab text where i want it to record my scores on each scene?