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

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

On Debian possible default full paths are:

/usr/bin/lexcount1 - from package: sloccount

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