suitecloudfanatic
01/30/2018, 1:03 AMtotalIncludedLines
before the for loop and do an increment inside the if condition just as @michoel stated.
If you want to get the values of which line passes the condition, you can declare an array and push the value of 'i' to that array.