Count checkbox

I already read that. There I saw “How many tasks are marked as done on a to-do list.”, but isnt a link, i dont know where I find that.

In my study I finded this “count += 1”, but I have no idea how use.