def parse_count(value: object) -> int | None:
    try:
        return int(value)
    except ValueError:
        return None
