getting the current sub item out of total sub items in a given dropdown (custom walker)

getting the current sub item out of total sub items in a given dropdown (custom walker)