added support for multiple lists (count and print), issue #5