def count(self):
    'Only valid if the distinct contains a single column'
    return CountDistinct(self.arg)
Only valid if the distinct contains a single column
def count(self):
    
    return CountDistinct(self.arg)