The LINES(t) function takes an arbitrary token text string, processes the text tokens, and then returns the number of lines in the string.
LINES(%CurrentClipboard%)