User Phillips, Michael (firstname.lastname@example.org) posted:
A small amount of array manipulation is required to achieve your desired
line = "This is a \r\n an example of a \r\n string with exactly \r\n four
instances of the \r\n linefeed and newline characters.";
count=0; #Count the number of lines
for (i in array)
This could easily be made into a common function if desired.