title: Saving the click counts of an item each item it is clicked
body: <p>Currently I try to build up a like counter for my web page. <br />
  Below you can see the click counter. It's fully working. Sadly (but for sure) just for the current session... Is there any possibility to store the value forever? </p>
  
  <p>One last thing! On the website is more than one picture to like. So I have no Idea how to store the values using cookies or localstorage.</p>
  
  <p>Maybe you have another Idea? Maybe no JS?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var currentValue = 0,
    count = $('.count');
  
  $(document).ready(function() {
    count.each(function(i) {
      $(this).addClass('' + (i += 1));
    });
  });
  
  
  
  $('.heart').on('click', function(e) {
    var clickElement = $(this).find('.count');
  
    clickElement.html(parseInt(clickElement.html(), 10) + 1);
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p&gt;Click on the Number to increase it by 1&lt;/p&gt;
  
  &lt;a class="heart"&gt;
    &lt;span class="icon"&gt;&lt;/span&gt;
    &lt;span class="count"&gt;0&lt;/span&gt;
  &lt;/a&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here's how it looks like on the page:
  <img src="https://i.stack.imgur.com/rV6JE.png" alt="enter image description here"></p>