Write a simple script in Bash or Python to automate the parsing of a log file and output the count of specific warning codes.