code: public function totalRows($table)
      {
          $sql = sprintf('SELECT COUNT(*) AS count FROM `%s`', $table);
          $statement = $this->query($sql, true);
          if ($statement) {
              if (isset($statement['0']['count'])) {
                  return $statement['0']['count'];
              }
          }
          
          return '0';
      }
docs: (non-PHPdoc)
  @see \JaegerApp\Db\DbInterface::totalRows()