When we are dealing with log files, we often need to count the number of times some keywords appear. For example, count the number of...