countlines.hs : counts the number of lines in a file