Find the unique dataframe while aggregating count column in R

Job ID: 31970862

Budget: $10 – $30 AUD

There is a dataframe with or without factor variables and numeric variables. If I select some variables to fit the regression, I need to find the unique dataframe with aggregating count column to fit the regression model