Add method for read the number of lines in an file