Write a Python script to parse a raw text log file and extract specific error codes along with their frequencies.