This is a script that counts the number of done items in a task list and puts it in the element with class doneCount above the list. Like this: