sh_count: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/sh_count - from package: sloccount

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/sh_count - from package: sloccount

You may install the required package with command apt-get install {package}
Error in other languages:
sh_count: bevel nie gevind nie
sh_count: comandă negăsită
sh_count: comando não encontrado
sh_count: commande introuvable
sh_count: command not found
sh_count: käsku ei ole
sh_count: không tìm thấy lệnh
sh_count: komanda nerasta
sh_count: Kommando nicht gefunden.
sh_count: kommandot finns inte
sh_count: komut yok
sh_count: nie znaleziono polecenia
sh_count: níor aimsíodh an t-ordú
sh_count: no se encontró la orden
sh_count: no s'ha trobat l'ordre
sh_count: opdracht niet gevonden
sh_count: parancs nem található
sh_count: perintah tidak ditemukan
sh_count: príkaz nenájdený
sh_count: příkaz nenalezen
sh_count: команда не найдена
sh_count: командата не е открита
sh_count: 命令找不到
sh_count: コマンドが見つかりません