linux count amount of specific word in file code example
Example 1: command to find the count of only words in a file in linux
wc -w <filename>
wc --words <filename>
Example 2: command to find the count of only words in a file in linux
wc -w /proc/cpuinfo