private function getValue($key, $default = 0) { return isset($this->counts[$key]) ? $this->counts[$key] : $default; }