todo.summary
Counts for a todo list's header or footer: total, active, done, overdue, due today, percent done and "3 items left".
summarise_todos in Python2 capabilities
summarise_todos in Pythontag_counts in Python