Getting for loop stats from program