Iterations are the number of steps through batches of the training data needed to complete one epoch.
For better understanding, consider the following example:
From the above values, 64 samples will be taken each time through the neural network forward and backward. This constitutes one iteration.
Therefore, if you are loading 64 images at a time (in one batch), to go through all 5000 images, you will need 5000 / 64 = about 78 iterations.