Table line counts skipping numbers on page break

I have a template set up where a table is grouped by a certain value. Inside each of these grouped tables, I would like to have the line number and these numbers are reset per table. It is working fine until I get to a page break, where the number jumps by 2.

It is a very basic set up. I have a Sum Variable called @GroupCount that is just set to 1. And for the line number, I just print @GroupCount+1

There could be a table change in between that causes the sum variable to be incremented too often. This article should help you:

Worked perfectly! Thank