Add a custom action to a group, in this case a count of tasks by status.
Study this example before creating group-level actions.