time perl -le '$l++ while <>; END {print $l}' BIG_FILE