Provide function to get number of lines