public function getLinksCount($zeroBased = false)
    {
        $count = count($this->getLinks());

        if ($zeroBased) {
            return $count - 1;
        }

        return $count;
    }
public function getLinksCount($zeroBased = false)
    {
        $count = count($this->getLinks());

        if ($zeroBased) {
            return $count - 1;
        }

        return $count;
    }
public function getLinksCount ( $ zeroBased = false ) { $ count = count ( $ this -> getLinks ( ) ) ; if ( $ zeroBased ) { return $ count - 1 ; } return $ count ; }
Get number of links.

@param  bool $zeroBased Using zero-based index

@return int
Get number of links .