I am trying to get information from certain files and show error in case the file does not exist.
The problem is that the counter shows me only one error