I recently found a really useful tool to count the number of lines in a c# or vb.net project or solution.
The tool is available for free download at the following URL:
http://richnewman.wordpress.com/2007/07/09/c-visual-basic-and-c-net-line-count-utility-version-2/