DRY for taskCountsByStatus.