def _naics_level(code: str) -> int:
    """_naics_level is a helper that allows us to determine what level the employment sector is talking about

    Parameters
    ----------
    code : str
        NAICS Sector as a string in the format xx-xxxxxx

    Returns
    -------
    int: The number corresponding to the level of the NAICS sector
    """
    codestr = code.split("-")[-1]  # Get the part of the string we care about
    return (
        len(codestr) - (codestr.count("0")) + 2
    )