cat yourfile.txt | sed 's|[,.]||g' | tr ' ' '\n' | sort | uniq -c | sort -k 1 -n -r

Redirect the output to a file in order to save.