count number of lines files .cpp .h

C++
# Show count sum
find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec cat {} + | wc -l
# Show count sum and stats for each file
find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec wc -l {} +
Source

Also in C++: