line_count returns a struct
added error member to struct
changed printf