added trigger count, modified task delete