def count_segments(message: str) -> dict[str, int]:
    """How many times each segment appears. See README.md."""
    raise NotImplementedError
