#number of categories that target article belongs to @staticmethod def category_count(page): return len(page.get("categories", []))