Modified the counting lines script

Automaitc counting of lines in all *.h and *.cpp files.