Question: counter in double for-in loop

I'm trying to put a counter in this specific type of ( for .. in ) loop.  Can't figure it out.

a:=[5,6,7]:
b:=[4,3,9]:

#unfinished code
counter1:=1:
counter2:=1:
for i in a do
  for j in b do
    c[counter1,counter2]:=i+j:
  end do:
end do:

What I can't figure out is, how to get it to work as easily as in this type of for loop. 

for i from 1 to nops(a) do
  for j from 1 to nops(b) do
    c[i,j]:=a[i]+b[j]:
  end do:
end do:

 

Please Wait...