Tracking the Iteration number of optimization components

Hello everyone,

I wonder to know if there is any way to track the number of iteration in real-time while we run optimization with Octopus as an instance. For example, I want to get generate a number from every iteration that Octupos does and use that number in grasshopper in realtime.