indeed, but it will cover mac, unix, and DOS format files, giving an accurate count in each case.
count all the cr's for mac, count the lfs for unix, and since crlf pairs will be counted in that, subtract the number of crlf pairs.
But yes it is a roundabout way of doing it...