<{for $foo=1 to $gp_num}>
<{$foo}>
<{/for}>