Add rake task to extract event statistics.