Get count of lines in a multiline message field

See here. You want to count the number of newlines, not the number of occurences of the string backslash-n.