def path_node_counter(in_str):
    """
    return number of nodes in path to compare for number of teres in regex for immediate elimination
    :param in_str:
    :return:
    """
    if in_str is '':
        return None
    return in_str.count('/') + 1
