count to 0 to keep track of the total number of negative numbers.currRowNegativeIndex to the last index of a row (n - 1).currRowNegativeIndex to the left until a non-negative number is found or the start of the row is reached.currRowNegativeIndex to the index of the last negative number found.count.count.