title: What is reference counter and how does it work?
body: <p>I've been writing code, and I'm in a point where I should have another program calling my library. I should make a reference counter for the output of my library. Basic idea as I have understood is that, I need to have reference counter struct inside my struct that I want to pass around. So my questions are following:</p>
  
  <ol>
  <li><p>What should I keep in mind when making a reference counter?</p></li>
  <li><p>What are complete don'ts when making a reference counter?</p></li>
  <li><p>Is there really detailed examples where to start with this? </p></li>
  </ol>
  
  <p>Thank you for your answers in advance!</p>