split lists by count
more doctests