/**
  * Returns number of records of document
  *
  * @param string $documentName
  * @param bool $usePrefix
  * @return int
  */
 public function getRecordsCount($documentName, $usePrefix = true)
 {
     return $this->adapter->getRecordsCount($usePrefix ? $this->addDocumentPrefix($documentName) : $documentName);
 }
 /**
  * Returns number of records of document
  *
  * @param string $documentName
  * @param bool $usePrefix
  * @param array|bool $distinctFields
  * @return int
  */
 public function getRecordsCount($documentName, $usePrefix = true, $distinctFields = [])
 {
     $documentName = $usePrefix ? $this->addDocumentPrefix($documentName) : $documentName;
     return $this->adapter->getRecordsCount($documentName, $distinctFields);
 }