Properly count the current line index (related to 'mark executable lines')