count and remove list items