Create new method to get line number of file