{ for (i=1; i<=NF; i++)if ($i ~ /^[0-9]+$/) num++;}END {print "Found "num" numbers.";}
Jurek 10 Adam 200 Params: 3 40 -5
Found 4 numbers.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!