python count items in list if condition