<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(self, files=False):
 """ Returns a count of unique values or files. Args: files (bool):
 When True, counts all files mapped to the Entity. When False, counts all unique values. Returns: an int. """

        return len(self.files) if files else len(self.unique())