'Works on both hydrated and not hydrated activities'

def __len__(self):

    if self._activity_ids:
        length = len(self.activity_ids)
    else:
        length = len(self.activities)
    return length
