added sample rate option to Metrics.Counter + test