gets the number of fixed effects in the last panel for collapse_fe purposes
get_lpanel_fe(df, panels)