Stocking stitch

how do you count one row? is the k row and the p row together considered one?

No, the knit row is one row, the purl row is another. When you do one of each, it’s 2 rows.