Find the rank of the matrix

A =

I know that rank is just the number of pivots a matrix has when in reduced row echelon form, but this one is confusing to me.

RREF A =

I thought this would have a rank of 0 because there are no pivots but i was wrong and it has a rank of 1.

Why is this?

Thanks for any help