from pathlib import Path


def get_run_number(run_path: Path) -> int:
    """Get the "run number" of a specific run.

    Parameters
    ----------
    run_path : Path
        Path to the run directory

    Returns
    -------
    int
        "run number"
    """
    run_info = run_path.name.split("_")[3]
    run_num_str = run_info.split("of")[0]
    run_num = int(run_num_str)
    return run_num