Update task.py

Added 1 line of code to update the event's task count.