[bash] How can I count the occurrences of a string within a file?