Shell Integer with nested foreach

I am scripting in tcsh and here is what I currently have:

foreach group (g1 g2 g3 g4)
set ppl = `cat $group.file.with.list.of.ppl.in.row.format`
set label = 1
@ label += 1
foreach ppls ($ppl)
echo $label >> file
end
end

Essentially for each ppl(s) per group, I would like to have the same number label in a file with ppl(s) from different groups. That is if each group had 5 ppl(s), the file would have 5 lines of 1s, 5 lines of 2s, 5 lines of 3s, etc. However, for some reason I am not getting the integer to add properly. I expect it is because the imbedded foreach. How can I remedy this? Thank you.