title: Total number of chunks in pandas
body: <p>In the following script, is there a way to find out how many "chunks" there are in total?</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  
  data = pd.read_csv('data.txt', delimiter = ',', chunksize = 50000) 
  
  for chunk in data:
      print(chunk)
  </code></pre>
  
  <p>Using <code>len(chunk)</code> will only give me how many each one has. </p>
  
  <p>Is there a way to do it without adding the iteration manually?</p>