>Open with VFP using low-level functions FOPEN() and FREAD(). Then count the number of lines in a loop. Don't use buffering. FREAD will read upto each CR+LF.
I'd read the file in some sizable chunks - perhaps 64K at a time - and keep counting the CRs in it.