Install cccc by entering the following commands in the terminal:
sudo apt update sudo apt install cccc
C and C++ Code Counter, a software metrics tool
CCCC analyses and reports measurements of source code in C, C++, and Java. The metrics supported include lines of code, McCabe's Cyclomatic Complexity, and measures of module fan-out/fan-in.