Implement a statistics HTTP server

Not really. You can have one or more buckets, where each bucket has a zero count. This conditional is to prevent a divide by zero.