My objective is to count the frequency of the top attributes for each variable in a dataframe, but instead of only counting the frequency of the attribute itself, I\'d like to c