title: Looping queue with jQuery
body: <p>I've got some very simple code below that I want to use as a starting point for a bigger jQuery solution. I need for the count() function to loop, but am not able to achieve this with the code below which only runs once and then stops. Would appreciate some pointers.</p>
  
  <pre><code>$(function() {
      count();
  });
  
  function count(){
      var $count = parseInt($("#count").text());
      $("#count").text($count).delay(2000).queue(function() {
          $(this).text($count+1);
          count();
      });
  }
  </code></pre>