Source Code Line Counting

You are the Project Manager and you just finished your project on time. Now you want to bill customer based on LOC (Line Of Code) of your project. What you gonna do ? Open all of your source code and counting manually ? Thats a bad idea.

The smart idea is using Practiline Source Code Line Counting program. Its not free, but it give you 15 days trial. The following are the feature of this program :
*. Choice of folder and addition of files from the program without additional dialogues;
*. Simultaneous support of all format types;
*. Free selection of available formats;
*. Definition of file format by its type (extension);
*. Advanced report export (printing, saving as pdf, doc and other formats, copying to clipboard)
*. Saving and loading of profiles for various users;
*. Displaying available profiles as menu;
*. Full report on the code:
*. number of source code lines;
*. number of blank lines;
*. number of comment lines;
*. number of mixed lines (code and comments);
*. percentage of comments, blanks and source code;
*. Sorting the report by any column of the table;
*. Copying a selected part of the report to clipboard;
*. Counting totals in the report (sum total, percentage).
Download program here

Okay now the problem of counting source code text based file (Java file, C++ file, PHP file, etc) solved. BUT what about counting line of code PLSQL code ?
Thats piece of cake, try using code

SELECT SUM(LOC)
FROM
(
   SELECT MAX(line) AS LOC,NAME FROM ALL_SOURCE WHERE owner='QUEST'    GROUP BY NAME
)

Thats it. This article should help you to do line counting.