public function count(): int
    {
        $network_size = gmp_init($this->getNbAddresses());
        if (gmp_cmp($network_size, PHP_INT_MAX) > 0) {
            throw new \RuntimeException('The number of addresses is bigger than PHP_INT_MAX, use getNbAddresses() instead');
        }

        return gmp_intval($network_size);
    }
public function count(): int
    {
        $network_size = gmp_init($this->getNbAddresses());
        if (gmp_cmp($network_size, PHP_INT_MAX) > 0) {
            throw new \RuntimeException('The number of addresses is bigger than PHP_INT_MAX, use getNbAddresses() instead');
        }

        return gmp_intval($network_size);
    }
public function count ( ) : int { $ network_size = gmp_init ( $ this -> getNbAddresses ( ) ) ; if ( gmp_cmp ( $ network_size , PHP_INT_MAX ) > 0 ) { throw new \ RuntimeException ( 'The number of addresses is bigger than PHP_INT_MAX, use getNbAddresses() instead' ) ; } return gmp_intval ( $ network_size ) ; }
Count the number of addresses contained with the address block. May exceed PHP's internal maximum integer.

@return int

@throws \RuntimeException thrown if the number of addresses exceeds PHP_INT_MAX
Count the number of addresses contained with the address block . May exceed PHP s internal maximum integer .