Added little Stats class for cpp. folly is better.