Place the FileName with whatever text file you have
# This will use some of the Bash tools like awk,sort,uniq,..
# always when you want to count uniqe you have to sort.
# tr ' ' '\n' replace all spaces with newline. so each word will be in a line by itself.
# [sort | uniq -c] will result in the frequency follwed by the term.
# awk to switch the print to show the term then '=>' and the frequency
cat FileName | tr ' ' '\n' | sort | uniq -c | awk '{print $2 " => " $1}'