I have a string with some text and a few line breaks.

How can I count the number of line breaks chr(13) in this string? Any example code?