/filter your file to a temp file to strip non-matching lines

Count the $lines remaining in the file

$read up to the first 3 lines

If there are more than 3 lines display your warning message

/remove the temp file

-genius_at_work