To increase the subpcount, you can read excel sheet first, and by using for each row, assign variable to find currentRow index, and by using write cell, you can increase count till Total rows Count!
For this, you need to first identify your rows total count.