import math


def getTotalIterations(tile_size, shape):
    """
        Returns the number of tile iterations.
    """

    num_dims = len(shape)
    iters = 1
    for i in range(num_dims):
        iters *= math.ceil(float(tile_size[i])/shape[i])

    return iters