Implemented /stats in Email and test cases