public function count($stat_key, $count = 1)
    {
        if (! isset($this->config['user_key'])) {
            throw new Exception('StatHat user key not set.');
        }

        $this->post('c', ['ukey' => $this->config['user_key'], 'key' => $stat_key, 'count' => $count]);
    }
public function count($stat_key, $count = 1)
    {
        if (! isset($this->config['user_key'])) {
            throw new Exception('StatHat user key not set.');
        }

        $this->post('c', ['ukey' => $this->config['user_key'], 'key' => $stat_key, 'count' => $count]);
    }
public function count ( $ stat_key , $ count = 1 ) { if ( ! isset ( $ this -> config [ 'user_key' ] ) ) { throw new Exception ( 'StatHat user key not set.' ) ; } $ this -> post ( 'c' , [ 'ukey' => $ this -> config [ 'user_key' ] , 'key' => $ stat_key , 'count' => $ count ] ) ; }
Increment a counter using the classic API.

@see https://www.stathat.com/manual/send#classic
@param string $stat_key - Private key identifying the stat
@param int $count - Number you want to count
@throws \Exception
Increment a counter using the classic API .