Finally, this would end my quest of efficient item counting (see Challenge: Quest for counting iterator length at C speed):
$PYMAIN -m timeit -s 'a = list(range(5)) * 20_000 + [0]' 'max(enumerate(a), key=0)[0] + 1'
500 loops, best of 5: 445 usec per loop