add count metric type sample rate support