Metrics library inspired by java codahale metrics library