I actually don't understand what you mention?

How many times do I execute my loop for?

How do I know how many rows are there in that column,could you please help me with it?

How can I count no. of rows in that column?