'Return the count of elements for this collection.'

def serialize_element_count(self, item, key, **context):

    return self.app.model.context.query(model.DatasetCollectionElement).filter((model.DatasetCollectionElement.dataset_collection_id == item.id)).count()
