private function add_count($method) { if (!isset($this->counter[$method])) { $this->counter[$method] = 0; } $this->counter[$method]++; }