Update number of lines