I have this:
if (rows[i]["SUB_STATUS"] == "ACTIVE") {
console.log("status is " + rows[i]["SUB_STATUS"])
} else if (rows[i]["SUB_STATUS"] == "INACTIVE") {
console.log("status is inactive " + rows[i]["SUB_STATUS"])
}
and I want to count the number of rows that my table holds with rows[i]["SUB_STATUS"] = to inactive, and active. How is this possible?