If you want to know how many lines of code your project have, you just need to use CLOC.
$ cloc path/to/directory
4580 text files.
4095 unique files.
713 files ignored.
github.com/AlDanial/cloc v 1.82 T=10.76 s (360.0 files/s, 114131.1 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
PHP 3054 84781 150196 786111
JavaScript 648 18676 19947 126623
CSS 109 3386 2068 18566
HTML 37 961 145 10288
SVG 5 0 0 3193
PO File 3 597 4 1210
XSLT 6 176 46 800
XML 4 12 0 119
DTD 2 0 0 82
SQL 3 12 3 32
JSON 1 0 0 14
Markdown 2 1 0 3
-------------------------------------------------------------------------------
SUM: 3874 108602 172409 947041
-------------------------------------------------------------------------------
You can install from: https://github.com/AlDanial/cloc
For installing it use:
npm install -g cloc # https://www.npmjs.com/package/cloc
sudo apt install cloc # Debian, Ubuntu
sudo yum install cloc # Red Hat, Fedora
sudo dnf install cloc # Fedora 22 or later
sudo pacman -S cloc # Arch
sudo emerge -av dev-util/cloc # Gentoo https://packages.gentoo.org/packages/dev-util/cloc
sudo apk add cloc # Alpine Linux
doas pkg_add cloc # OpenBSD
sudo pkg install cloc # FreeBSD
sudo port install cloc # Mac OS X with MacPorts
brew install cloc # Mac OS X with Homebrew