python count list items in dictionary