Can extract total iteration count in kernel