Counting lines starting with a certain string grep '^your_word' /path/to/file | wc -l [highlighter line=0]