app/Statistics/Repository/IndividualRepository.php
private function getTotalSexQuery(string $sex): int
    {
        return DB::table('individuals')
            ->where('i_file', '=', $this->tree->id())
            ->where('i_sex', '=', $sex)
            ->count();
    }
private function getTotalSexQuery(string $sex): int
    {
        return DB::table('individuals')
            ->where('i_file', '=', $this->tree->id())
            ->where('i_sex', '=', $sex)
            ->count();
    }
private function getTotalSexQuery ( string $ sex ) : int { return DB :: table ( 'individuals' ) -> where ( 'i_file' , '=' , $ this -> tree -> id ( ) ) -> where ( 'i_sex' , '=' , $ sex ) -> count ( ) ; }
Returns the total count of a specific sex.

@param string $sex The sex to query

@return int
Returns the total count of a specific sex .