Count elements from 0.
Find the middle element in a given list.