Factor out mp_seq_index_obj() function to implement .index() on sequences.
Implement tuple.index().
Factor out mp_seq_count_obj() and implement tuple.count().