Reference Total products sold? --Liquid Code-- Help Please

Is there any way to reference number of total products sold in Shopify? I am trying to make a counter that references the number of products sold. How do I reference it in my html with Liquid code? Trying to create a counter that updates in real time as someone purchases products.

<div class="counter_row">
    <div class="col-lg-3 stats">
      <i class="fa fa-tree" aria-hidden="true"></i>
      <div class="counting" data-count="---liquid code here to ref products---">0</div>
      <h5 class="counterstat_text">TREES PLANTED</h5>

Does anyone have an answer for this? I would think it would be something like–

{% include 'product-sold-count' %}

but I believe this will only return the number of that specific product and not total? Please help.