Counting lines of code in a project

Anyone used any tooling to count how many lines of .script code you have
If had to be per suite that would be ok but trying to see how many we have per project/git repo

I know about
git ls-files ‘*.script’ | xargs wc -l
The issue here is doesnt work with file names with certain symbols or spaces in the name (that another discussion with my team)

I also tried using cloc but I cant get it to work with .script files just other languages

open to ideas…thanks

Think I figured it out if anyone see this. Ran in bash

find -name “*.script” -exec cat {} + | wc -l