Adding script to calculate number of events generated over the past week