I tried the auto-number cast ID function, but it did not number them based on occurrences. It appeared random. The lead character with 41 occurrences was #2 and a random cast with 1 occurrence was labelled #1.