I have lines like these, and I want to know how many lines I actually have...
09:16:39 AM all 2.00 0.00 4.00 0.00 0.00 0.00 0.00 0.0
As others said wc -l is the best solution, but for future reference you can use Perl:
wc -l
perl -lne 'END { print $. }'
$. contains line number and END block will execute at the end of script.
$.
END