Implemeneted the eventstats command. All tests pass.