def update_count(self):
        self.num_media = self.files_attached.count()
        self.num_comments = self.comments.count()
        self.save()
Updates the count of media files attached and comments. Should be
dataset/ETHPy150Open ExCiteS/geokey/geokey/contributions/models.py/Observation.update_count