Today I was asked to provide the number of lines of code I have written in last few months.
I quickly googled to find if there is any netbeans plugin which can help me doing this and yes, I found one:
WordCount Nb Module Count words, lines, and statements of java source files
You just have to select the package containing your java files and this plugin will give you details like:
Number of Files
Name of Files
Characters
Words
Lines
Characters/Line
Words/Line
Blank Lines
Code Lines
I found this plugin very useful.