def create_statistics_from_ids(ids):
    """Create a statistics dictionary from a dict of ids/details for items added, modified and already_there"""
    return {
        "added": len(ids["added"]),
        "modified": len([item for item in ids["modified"] if item["data_changed"]]),
        "already_there": len(ids["already_there"]),
    }