Update task.py

Added 1 line of code to update the event's task count.
Merge pull request #16 from CKnotts/patch-4

Update task.py