original_string: public function getNumberOfAnswers($surveyId) {
          $fields['tokenCount'] = 'COUNT(DISTINCT gto_id_token)';
          $select               = $this->loader->getTracker()->getTokenSelect($fields)->andReceptionCodes([]);
          $select->forSurveyId($surveyId)
                  ->onlySucces()
                  ->onlyCompleted();
          $row                  = $select->fetchRow();
          return sprintf($this->_('Answered surveys: %d.'), $row['tokenCount']);
      }
code: public function getNumberOfAnswers($surveyId) {
          $fields['tokenCount'] = 'COUNT(DISTINCT gto_id_token)';
          $select               = $this->loader->getTracker()->getTokenSelect($fields)->andReceptionCodes([]);
          $select->forSurveyId($surveyId)
                  ->onlySucces()
                  ->onlyCompleted();
          $row                  = $select->fetchRow();
          return sprintf($this->_('Answered surveys: %d.'), $row['tokenCount']);
      }
code_tokens: public function getNumberOfAnswers ( $ surveyId ) { $ fields [ 'tokenCount' ] = 'COUNT(DISTINCT gto_id_token)' ; $ select = $ this -> loader -> getTracker ( ) -> getTokenSelect ( $ fields ) -> andReceptionCodes ( [ ] ) ; $ select -> forSurveyId ( $ surveyId ) -> onlySucces ( ) -> onlyCompleted ( ) ; $ row = $ select -> fetchRow ( ) ; return sprintf ( $ this -> _ ( 'Answered surveys: %d.' ) , $ row [ 'tokenCount' ] ) ; }
docstring: Gets the number of answers in a survey
  
  @param $surveyId int Gems Survey ID
  @return string translated string with number of answers
docstring_tokens: Gets the number of answers in a survey