SONAR-926 improve computation of number of lines