Add __len__ and __length_hint__