<p>I know there are quite a few line count tools around. Is there something simple that's not a part some other big package that you use ?</p>

[{'answer_id': 58786, 'author': 'Ryan Lanciaux', 'author_id': 1385358, 'author_profile': 'https://Stackoverflow.com/users/1385358', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://www.slickedit.com/index.php?option=com_content&amp;view=article&amp;id=78&amp;Itemid=90" rel="nofollow noreferrer">Slick Edit Gadgets</a> has a nice report breaking it down by lines of code, whitespace and comments. The plug-in is free and relatively small.</p>\n'}, {'answer_id': 58792, 'author': 'Ash', 'author_id': 5023, 'author_profile': 'https://Stackoverflow.com/users/5023', 'pm_score': 2, 'selected': False, 'text': '<p>Sorry if it\'s not a direct answer but these days I much prefer to use code metric tools or profilers rather than lines of code.  <a href="http://www.red-gate.com/products/ants_profiler/index.htm" rel="nofollow noreferrer">Ants profiler</a> and <a href="http://www.ndepend.com" rel="nofollow noreferrer">NDepend</a> are two that immediately come to mind.</p>\n\n<p>It\'s just that these tools allow you to get a real grasp on the size/complexity of your software, lines of code is a very primitive metric.</p>\n'}, {'answer_id': 58811, 'author': 'Vinko Vrsalovic', 'author_id': 5190, 'author_profile': 'https://Stackoverflow.com/users/5190', 'pm_score': 1, 'selected': False, 'text': '<p>You could use find and wc from this relatively small package, <a href="http://unxutils.sourceforge.net/" rel="nofollow noreferrer">http://unxutils.sourceforge.net/</a></p>\n\n<p>Like </p>\n\n<pre><code>find . -name *.cs -exec wc -l {} \\;\n</code></pre>\n\n<p>Or, if you have a linux machine handy you can mount the drive and do it like that, and it\'ll give you a ballpark figure. You can complexify to remove comments, etc. But given that you just want a ballpark figure, shouldn\'t be necessary.</p>\n'}, {'answer_id': 59355, 'author': 'Gern Blanston', 'author_id': 2786, 'author_profile': 'https://Stackoverflow.com/users/2786', 'pm_score': 0, 'selected': False, 'text': '<p>not sure if this works in VS08 ... <a href="http://www.codeproject.com/KB/macros/LineCounterAddin.aspx" rel="nofollow noreferrer">code project</a></p>\n'}, {'answer_id': 63502, 'author': 'Tomas Pajonk', 'author_id': 4694, 'author_profile': 'https://Stackoverflow.com/users/4694', 'pm_score': 0, 'selected': False, 'text': '<p>I have also used this simple C# made tool. </p>\n\n<p><a href="http://richnewman.wordpress.com/2007/07/09/c-visual-basic-and-c-net-line-count-utility-version-2/" rel="nofollow noreferrer">http://richnewman.wordpress.com/2007/07/09/c-visual-basic-and-c-net-line-count-utility-version-2/</a></p>\n'}, {'answer_id': 212802, 'author': 'Constantin', 'author_id': 20310, 'author_profile': 'https://Stackoverflow.com/users/20310', 'pm_score': 2, 'selected': False, 'text': "<p>I use this Python script:</p>\n\n<pre><code>import os, sys\ntotal_count = 0\nfor root, dirs, filenames in os.walk(sys.argv[1]):\n  dirs[:] = [ # prune search path\n    dir for dir in dirs\n    if dir.lower() not in ('.svn', 'excludefrombuild')]\n  for filename in filenames:\n    if os.path.splitext(filename)[1].lower() in ('.cpp', '.h'):\n      fullname = os.path.join(root, filename)\n      count = 0\n      for line in open(fullname): count += 1\n      total_count += count\n      print count, fullname\nprint total_count\n</code></pre>\n"}, {'answer_id': 1827934, 'author': 'kotelni', 'author_id': 222321, 'author_profile': 'https://Stackoverflow.com/users/222321', 'pm_score': 0, 'selected': False, 'text': "<p>Exact Magic's StodioTools package (free) shows Executable LoC among other metrics. This is a plug-in to VisualStudio 2008.</p>\n"}, {'answer_id': 1837735, 'author': 'Chris Melinn', 'author_id': 134700, 'author_profile': 'https://Stackoverflow.com/users/134700', 'pm_score': 2, 'selected': False, 'text': '<p>If you have Visual Studio 2008 Team Developer or Team Suite edition, you <a href="http://blogs.msdn.com/habibh/archive/2009/10/27/how-to-count-the-lines-of-code-loc-in-your-application-using-visual-studio.aspx" rel="nofollow noreferrer">can get them directly</a> in Visual Studio using <a href="http://www.geekzone.co.nz/vs2008/4773" rel="nofollow noreferrer">Code Metrics</a>.</p>\n'}, {'answer_id': 5797670, 'author': 'FARHAD AFSAR', 'author_id': 717483, 'author_profile': 'https://Stackoverflow.com/users/717483', 'pm_score': 1, 'selected': False, 'text': '<p>Right click on Project in Solution explorer and select "Calculate Code Metrics".</p>\n'}, {'answer_id': 6235572, 'author': 'Robert Basler', 'author_id': 707480, 'author_profile': 'https://Stackoverflow.com/users/707480', 'pm_score': 0, 'selected': False, 'text': '<p>Project Line Counter is pretty cool, but you need an updated .reg file for VS 2008 and later.  I have a .reg file for Visual Studio 2010 on my website: <a href="http://www.onemanmmo.com/index.php?cmd=newsitem&amp;comment=news.1.41.0" rel="nofollow">http://www.onemanmmo.com/index.php?cmd=newsitem&amp;comment=news.1.41.0</a>  There\'s some instructions in the discussion at CodeProject <a href="http://www.codeproject.com/KB/macros/linecount.aspx" rel="nofollow">http://www.codeproject.com/KB/macros/linecount.aspx</a> with info on getting it to run with Visual Studio 2008.</p>\n'}]
['https://Stackoverflow.com/questions/58783', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4694/']