Create a Dynamic Numbering Down Countdown for a List of Articles jQuery

A Numbering Countdown for Articles or Products with jQuery.

This is a snippet to create a numbering list that count down for jQuery. I used this for counting down articles that the best 20 products sold. Use this as you would like on your projects. 

<script>
      var n = $( ".website .numbering" ).length;
      $(".website .numbering").each(function(i){
          if(i == 0){
            $(this).prepend((n) + ". ");
          } else {
            $(this).prepend((n - 1) + ". ");
            n = n - 1;
          }
      });
    </script>