Program that counts the elements in a series of nested lists.