Changed method to return how many lines are removed