I am trying to calculate the frequency of duplicated rows based on specific columns but i want to keep the id of each one of the duplicated rows because i will need it after