You should use the Spreadsheet string to array function to convert your multi line string to 1D or 2D array containing your records, after that you can easily use the array functions to count or select a specific record (array row).
To pick only a particular line from a multi-line string you should use the Pick Line function that you find in the additional String Functions palette.