VTEX interview question

Develop an error message counter from a log