Write a shell script to parse a log file, extract all error codes, and output a summary count of each error type.