For various reasons you may want to know in how many lines of code given open-source software is implemented. For example, you want to estimate the effort devoted to developing a particular open-source program. Or you want to gauge the size and complexity of a program before trying it.
Source: LXer – How to count lines of source code in Linux