Update method readnumberoflines