Count tasks instead of mapconcatting them into a list.