Count the Real Errors

Actually open and read a log file instead of hardcoding the answer.

A beginner Linux challenge worth 3 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.

The Challenge

Scenario: /home/labuser/lab/count_errors.py should count ERROR lines in server.log, but it never opens the file at all - the count is just hardcoded to 0.

Task: Fix count_errors.py so it reads server.log, counts the 3 lines containing ERROR, and writes 3 to error_count.txt. Run check when ready.