public function counter($metric, $count = 1, array $tags = array(), $sampleRate = AbstractMetric::DEFAULT_SAMPLE_RATE)
    {
        return new Counter($this->prefix($metric), $count, array_merge($this->defaultTags, $tags), $sampleRate);
    }
public function counter($metric, $count = 1, array $tags = array(), $sampleRate = AbstractMetric::DEFAULT_SAMPLE_RATE)
    {
        return new Counter($this->prefix($metric), $count, array_merge($this->defaultTags, $tags), $sampleRate);
    }
public function counter ( $ metric , $ count = 1 , array $ tags = array ( ) , $ sampleRate = AbstractMetric :: DEFAULT_SAMPLE_RATE ) { return new Counter ( $ this -> prefix ( $ metric ) , $ count , array_merge ( $ this -> defaultTags , $ tags ) , $ sampleRate ) ; }
Creates a new counter

@param string $metric     Metric name
@param int    $count      Count value
@param array  $tags       Metric tags
@param int    $sampleRate Metric sample rate

@return Counter
Creates a new counter