title: How to find how many Image Generated By ImageDataGenerator
body: <p>Hi I want to ask you a question about Keras ImageDataGenerator. Can I determine how many augmented image will create? or how can find training image set size after augmentation.In Keras documentation flow function description is : "Takes numpy data &amp; label arrays, and generates batches of augmented/normalized data. Yields batches indefinitely, in an infinite loop."  But how many images generated ? </p>
  
  <p>For example the following code how many image generates ? Infinite ?</p>
  
  <pre><code>from keras.preprocessing.image import ImageDataGenerator, array_to_img, img_to_array, load_img
  from matplotlib import pyplot
  import numpy as np
  
  datagen = ImageDataGenerator(
          rotation_range=40,
          width_shift_range=0.2,
          height_shift_range=0.2,
          shear_range=0.2,
          zoom_range=0.2,
          horizontal_flip=True,
          fill_mode='nearest')
  img=load_img('cat.1.jpg')
  x=img_to_array(img)
  x = x.reshape((1,) + x.shape) 
  print x.shape
  h=datagen.flow(x)
  </code></pre>