ruby -retc -e 'puts Etc.nprocessors'
python -c "import multiprocessing; print(multiprocessing.cpu_count())"
groovy -e "println Runtime.getRuntime().availableProcessors();"
node -e "console.log(os.cpus().length)"
cat /proc/cpuinfo | grep processor | wc -l