addressed seg fault in line_count_4