Count the number of lines of a file.
Dealing with file existence.
Using catch
Dispatch according to exception.
Dealing with retrieving the filename from the IOError.