Find the index of the last comment in the sequence of comments-only tokens after the token that has position pos in pd.
pos
pd
Useful links