The function "Row()" simply reports back the current row number the formula is in.

I have no idea if Google Docs has this ability or not.