add an event duration and update count distribution charts (Question 2.c)