Help in identifying rows and colums

Dear Grass Users,

I am doing a research in hydrologic modelling. I wonder whether there is
a Grass that will help me identify and number rows and column within a catchmentarea. Is there any script program that will number the rows and colums within
the catchment and later on identify a specific row and column where the program
crash. Do you have any idea where I can get this script.

Thanks for any clue.
Cheers,
Kamarul