sql_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/sql_count - from package: sloccount

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

On Debian possible default full paths are:

/usr/bin/sql_count - from package: sloccount

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