implement `size_hint` for a few types