title: Javascript Countdown Timer Repeat and Count total that repeat
body: <p>I have javascript countdown timer from 25 -> 0.</p>
  
  <pre><code>var count=25;
  
  var counter=setInterval(timer, 1000); //1000 will  run it every 1 second
  
  function timer()
  {
    count=count-1;
    if (count &lt;= 0)
    {
      clearInterval(counter);
      return;
     }
  
   document.getElementById("timer").innerHTML=count; // watch for spelling
   }
  </code></pre>
  
  <p>div HTML</p>
  
  <pre><code>&lt;span id="timer"&gt;25&lt;/span&gt;
  </code></pre>
  
  <p>Now I want the countdown is repeat automatically after wait 5 seconds then it start again from 25 -> 0. And I want to count how many times that countdown repeat. Is it possible for that?</p>
  
  <p>Please help.</p>