Provide a way to get the iteration index.