make better:compute number of line by type of files