Showing the number of to-do items remaining 显示剩下待办事项的数量 func countUncheckedItems() -> Int { var count = 0 for item in items where !item.checked { count += 1 } return count}