How to count the number of row in string

check this

regards!