In what way is it not working? Are you not getting any value for Count or is it a value that is different from what you are expecting? Also is this microflow an OnChange microflow attached to a toggle?
Part of your issue may be that the TaskList that you are generating the count for does not include either of the 2 new tasks you create in this microflow, which may lead to a count different than what you want, but its hard to say exactly what's going on without a little more context.
Hope this helps !