finish collections.Counter and deque