ruby_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/ruby_count - from package: sloccount

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

On Debian possible default full paths are:

/usr/bin/ruby_count - from package: sloccount

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