title: Adding string-number pairs to an array (from array), so that recurring strings increment the number instead of being added again
body: <p>How to insert items from an array (of item-number pairs) in a way so that if the item has already been added, we increment the number associated with the item?</p>
  
  <p>So when we first add the item, we set the number associated with it to 1.</p>
  
  <p>The reason I am doing this is to have a list of items with a number of how many times they occurred in the input array.</p>
  
  <p>If there is a better way of receiving that result, I will gladly accept those answers as well.</p>