Extracted task counters into variables
* counter value for total and successful tasks moved into named variables
** this improves readability of success summarization logic