import json


def count_docs(path: str) -> tuple[str, str]:
    """Retrieves language and date for each file"""
    print(f"Extracting data from {path}")
    with open(path) as file:
        data = json.load(file)
        language = data.get("site_language")
        time_published = data.get("time_published")
        return language, time_published