df['str_list'] = df.apply(lambda row: ' '.join([str(int(val)) for val in
    row]), axis=1)
df1 = pd.DataFrame(df['str_list'].value_counts().values, index=df[
    'str_list'].value_counts().index, columns=['Count'])
How to count duplicate rows in pandas dataframe?