Cambridgeshire County Council and Peterborough City Council will have to publish how many potholes have been repaired.