new fonction to count number of line in a section