Count changed files:
git diff --stat | wc -l
Count staged files:
git diff --stat --staged | wc -l
Please support this site and join our Discord!