original_string: public function ezCount($stat, $count = 1)
      {
          if (! isset($this->config['ez_key'])) {
              throw new Exception('StatHat EZ key not set.');
          }
  
          // If a prefix is set, prepend it to the stat name.
          if (! empty($this->config['prefix'])) {
              $stat = $this->config['prefix'].$stat;
          }
  
          $this->post('ez', ['ezkey' => $this->config['ez_key'], 'stat' => $stat, 'count' => $count]);
      }
code: public function ezCount($stat, $count = 1)
      {
          if (! isset($this->config['ez_key'])) {
              throw new Exception('StatHat EZ key not set.');
          }
  
          // If a prefix is set, prepend it to the stat name.
          if (! empty($this->config['prefix'])) {
              $stat = $this->config['prefix'].$stat;
          }
  
          $this->post('ez', ['ezkey' => $this->config['ez_key'], 'stat' => $stat, 'count' => $count]);
      }
code_tokens: public function ezCount ( $ stat , $ count = 1 ) { if ( ! isset ( $ this -> config [ 'ez_key' ] ) ) { throw new Exception ( 'StatHat EZ key not set.' ) ; } // If a prefix is set, prepend it to the stat name. if ( ! empty ( $ this -> config [ 'prefix' ] ) ) { $ stat = $ this -> config [ 'prefix' ] . $ stat ; } $ this -> post ( 'ez' , [ 'ezkey' => $ this -> config [ 'ez_key' ] , 'stat' => $ stat , 'count' => $ count ] ) ; }
docstring: Increment a counter using the EZ API.
  
  @see https://www.stathat.com/manual/send#ez
  @param string $stat - Unique stat name
  @param int $count - Number you want to count
  @throws \Exception
docstring_tokens: Increment a counter using the EZ API .