src/Webtrees/Module/Sosa/Model/SosaProvider.php
public function getSosaCount(){
        if(!$this->is_setup) return 0;
        return Database::prepare(
            'SELECT COUNT(majs_sosa) FROM `##maj_sosa`' .
            ' WHERE majs_gedcom_id=:tree_id AND majs_user_id=:user_id')
            ->execute(array(
                'tree_id' => $this->tree->getTreeId(), 
                'user_id' => $this->user->getUserId() 
            ))->fetchOne() ?: 0;
    }
public function getSosaCount(){
        if(!$this->is_setup) return 0;
        return Database::prepare(
            'SELECT COUNT(majs_sosa) FROM `##maj_sosa`' .
            ' WHERE majs_gedcom_id=:tree_id AND majs_user_id=:user_id')
            ->execute(array(
                'tree_id' => $this->tree->getTreeId(), 
                'user_id' => $this->user->getUserId() 
            ))->fetchOne() ?: 0;
    }
public function getSosaCount ( ) { if ( ! $ this -> is_setup ) return 0 ; return Database :: prepare ( 'SELECT COUNT(majs_sosa) FROM `##maj_sosa`' . ' WHERE majs_gedcom_id=:tree_id AND majs_user_id=:user_id' ) -> execute ( array ( 'tree_id' => $ this -> tree -> getTreeId ( ) , 'user_id' => $ this -> user -> getUserId ( ) ) ) -> fetchOne ( ) ? : 0 ; }
Get the total Sosa count for all generations

@return number Number of Sosas
Get the total Sosa count for all generations