I got dataframe like below,
I want to calculate the valid/count of all combinations in double and triple and quadruple. Also i want to get result as dataframe