Write a Python script to parse a messy log file, extract specific error codes, and output a summary count of occurrences.