Boolean variables are three X,Y,Z
By Applying the condition f(~x,y,~z) = f(x,y,z)
we are reducing the choice the function can have now the function f(~x,y,~z) and f(x,y,z) both need to have same value . as the function is boolean mean it can have value either 0 or 1 .
if f(~x,y,~z) is 0 than f(x,y,z) need to have value 0
if f(~x,y,~z) is 1 than f(x,y,z) need to have value 1
we have 4 such pairs : f(0) f(5) , f(1) f(4) , f(2) f(7) , f(3) f(6) and each can have value 0 or 1 .
so possible such boolean function are = 2^4 = 16