grep`s '-c' option allows you to count the instances of a pattern within a file. For instance, you would type "grep -c "keyword" filename" to find out how many times "keyword" appears in a file.