title: Count number of times a string is printed
body: <p>I have a for loop that prints a string multiple times.</p>
  
  <p>I need to know:</p>
  
  <p>How do I get the number of times the string is printed?</p>
  
  <p>Thanks!</p>