Implement a statistics HTTP server

std::cout is not a place you are allowed to write to!

What are you trying to do?  We have logs you can write to - or do you want to generate a 404 message to the requester?  You can do that tooO!!