Adding line counting.