title: How to add increased number on every output
body: <p>First, here is my code that I have.</p>
  
  <pre class="lang-py prettyprint-override"><code>s = api.get_info(1230)
  my_file=open('textlist.txt','r')
  file_lines=my_file.readlines()
  my_file.close()
  ###############
  for line in file_lines:
      try:
          print("[+] Trying to post "+line)
          if line != '\n':
             api.update(line, post_id = s.id)
          else:
              pass
      except api.msgError as e:
          print(e.msg)
          #set interval per replies
      print("[+] Success +1...")
      sleep(10)
  ###############
  </code></pre>
  
  <p>And the <code>textlist.txt</code> file is</p>
  
  <pre><code>line_1
  line_2
  line_3
  ...
  line_10
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>[+] Trying to post line_1
  [+] Success +1...
  [+] Trying to post line_2
  [+] Success +1...
  ...
  </code></pre>
  
  <p>And now <strong>how can I make the output for</strong> <code>[+] Success +1</code> ** to be increased every time it successfully posts the line**, like this  </p>
  
  <pre><code>[+] Trying to post line_1
  [+] Success +1...
  [+] Trying to post line_2
  [+] Success +2...
  ...
  [+] Trying to post line_10
  [+] Success +10...
  </code></pre>