def n_members(self):
        """
        Returns the number of members in the domain if it
        `is_finite`, otherwise, returns `np.inf`.

        :type: ``int`` or ``np.inf``
        """
        if self.is_finite:
            return int(self.max - self.min + 1)
        else:
            return np.inf