'count' is a list.
I thought count.index('20') should find the value of '20' in the list and return the index of '26'. What am I missing?
count.index(x) return the index in the list of the first item whose value is x. It is an error if there is no such item. Probably, the value of the 26th element was 20, but not '20'.