I can change the numbers of columns in the legend using arcpy.adjustColumnCount(column_count).
However, in my particular case I would like to know how many colums there are in the legend in the beginning and save that information as a variable, then change the number of columns to a specific value for a map and last change the number of colums back to the value of my variable.
Is there a possibility to do this?