StyledText.ParagraphCount
From Xojo Documentation
Method
Returns as an Integer the number of paragraphs in Text.
Notes
Completely empty paragraphs (e.g., blank lines) do not count as paragraphs.
Returns as an Integer the number of paragraphs in Text.
Completely empty paragraphs (e.g., blank lines) do not count as paragraphs.