private function getCount($key) { return isset($this->counts[$key]) ? count($this->counts[$key]) : 0; }