Word frequency count using Bash