<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def count_rows_duplicates(self, table, cols='*'):
 """Get the number of rows that do not contain distinct values."""

        return self.count_rows(table, '*') - self.count_rows_distinct(table, cols)