Acr is a simple cli to find the exact number of lines of text/code present in a directory tree. It can either by used normally or by passing a filter flag-
acr -f ".js,.go"
If you have go installed,
go get -u github.com/icelain/acr && go install github.com/icelain/acr
Or you can get the binary executables from the releases page.